diff --git a/email_in.pl b/email_in.pl index a2677ffdc..ebb640230 100755 --- a/email_in.pl +++ b/email_in.pl @@ -87,7 +87,7 @@ sub parse_mail { # F*cking MS Exchange sometimes does not append Auto-Submitted header # to delivery status reports, so also check content-type. my $autosubmitted; - if (lc($input_email->header('Auto-Submitted') || '') ne 'no' || + if (lc($input_email->header('Auto-Submitted') || 'no') ne 'no' || ($input_email->header('Content-Type') || '') =~ /delivery-status/iso) { debug_print("Rejecting email with Auto-Submitted = $autosubmitted");