0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

see #826 - avoid $no_vacation_pattern of "" causing everyone to be skipped

This commit is contained in:
David Goodwin 2024-05-09 08:35:57 +01:00
parent 05d87b16fe
commit 6c84ceeb94
No known key found for this signature in database

View File

@ -774,7 +774,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);
}