Fix case where a message was stored as not delivered, now a message that is not queued on localhost is considered as delivered. Thanks to enekux for the report.

This commit is contained in:
Darold Gilles 2017-11-16 16:53:27 +01:00
parent 88d501ed24
commit 4eb40a9574

View file

@ -998,7 +998,7 @@ sub parse_sendmail
my $to = &edecode($2);
my $relay = &clean_relay(lc($3));
my $status = $4;
if (!$CONFIG{NO_QUEUE_EXCLUSION} && ($status =~ /queued as ([^\)]+)\)/)) {
if (!$CONFIG{NO_QUEUE_EXCLUSION} && ($status =~ /queued as ([^\)]+)\)/ && $relay eq 'localhost')) {
$KEEP_TEMPORARY{$1} = $id;
return;
}