Commit 541c3e88 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 662883: email_in.pl should ignore "out of the office" auto-reply emails

r/a=mkanat
parent 8356bb7e
......@@ -86,6 +86,14 @@ sub parse_mail {
$summary = trim($2);
}
# Ignore automatic replies.
# XXX - Improve the way to detect such subjects in different languages.
my $auto_submitted = $input_email->header('Auto-Submitted') || '';
if ($summary =~ /out of( the)? office/i || $auto_submitted eq 'auto-replied') {
debug_print("Automatic reply detected: $summary");
exit;
}
my ($body, $attachments) = get_body_and_attachments($input_email);
if (@$attachments) {
$fields{'attachments'} = $attachments;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment