Renamed $novacation_pattern to $no_vacation_pattern + codestyle changes

pull/61/head
tkempf 7 years ago
parent c5dcbeb48d
commit 4660d65679

@ -84,7 +84,7 @@
#
# 2017-07-14 Thomas Kempf <tkempf@hueper.de>
# Replacing deprecated Mail::Sender by Email::Sender
# Add configuration parameter $novacation_pattern in order to exlude specific alias-recipients from
# Add configuration parameter $no_vacation_pattern in order to exlude specific alias-recipients from
# sending vacation mails, even if one or multiple of the recipients the alias points to has vacation
# currently active.
#
@ -221,8 +221,8 @@ our $noreply_pattern = 'bounce|do-not-reply|facebook|linkedin|list-|myspace|twit
# By default vacation email addresses will be sent for all recipients.
# default = ''
# preventing vacation notifications for recipient info@example.org would look like this:
# our $novacation_pattern = 'info\@example\.org';
our $novacation_pattern = '';
# our $no_vacation_pattern = 'info\@example\.org';
our $no_vacation_pattern = '';
# instead of changing this script, you can put your settings to /etc/mail/postfixadmin/vacation.conf
@ -723,7 +723,7 @@ if(!$from || !$to || !$messageid || !$smtp_sender || !$smtp_recipient) {
}
$logger->debug("Email headers have to: '$to' and From: '$from'");
if ($to =~ /^.*($novacation_pattern).*/i) {
if ($to =~ /^.*($no_vacation_pattern).*/i) {
$logger->debug("Will not send vacation reply for messages to $to");
exit(0);
}

Loading…
Cancel
Save