FIX: don't use 'Return-Path' header to determine whether the email was auto generated

This commit is contained in:
Régis Hanol
2016-02-01 10:21:58 +01:00
parent ce8c2d34d7
commit 27aaed0aa5
3 changed files with 0 additions and 12 deletions

View File

@ -92,7 +92,6 @@ module Email
end
def is_auto_generated?
@mail.return_path.blank? ||
@mail[:precedence].to_s[/list|junk|bulk|auto_reply/] ||
@mail.header.to_s[/auto-(submitted|replied|generated)/]
end