mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
see #826 - avoid $no_vacation_pattern of "" causing everyone to be skipped
This commit is contained in:
parent
05d87b16fe
commit
6c84ceeb94
@ -774,7 +774,8 @@ if(!$from || !$to || !$messageid || !$smtp_sender || !$smtp_recipient) {
|
|||||||
}
|
}
|
||||||
$logger->debug("Email headers have to: '$to' and From: '$from'");
|
$logger->debug("Email headers have to: '$to' and From: '$from'");
|
||||||
|
|
||||||
if ($to =~ /^.*($no_vacation_pattern).*/i) {
|
# See https://github.com/postfixadmin/postfixadmin/issues/826 - an empty string would match anything, probably not desirable.
|
||||||
|
if($no_vacation_pattern ne '' && $to =~ /^.*($no_vacation_pattern).*/i) {
|
||||||
$logger->debug("Will not send vacation reply for messages to $to");
|
$logger->debug("Will not send vacation reply for messages to $to");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user