mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
see #826 - avoid $no_vacation_pattern of "" causing everyone to be skipped
This commit is contained in:
1 file changed
+2
-1
@@ -646,7 +646,8 @@ if(!$from || !$to || !$messageid || !$smtp_sender || !$smtp_recipient) {
|
||||
}
|
||||
$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");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user