mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
detect more auto-generated emails
This commit is contained in:
parent
bf579174c1
commit
6c82fbebf5
1 changed files with 3 additions and 2 deletions
|
@ -118,8 +118,9 @@ module Email
|
|||
end
|
||||
|
||||
def is_auto_generated?
|
||||
@mail[:precedence].to_s[/list|junk|bulk|auto_reply/] ||
|
||||
@mail.header.to_s[/auto-(submitted|replied|generated)/]
|
||||
@mail[:precedence].to_s[/list|junk|bulk|auto_reply/i] ||
|
||||
@mail[:from].to_s[/(mailer-?daemon|postmaster|noreply)@/i] ||
|
||||
@mail.header.to_s[/auto[\-_]?(response|submitted|replied|reply|generated|respond)|holidayreply|machinegenerated/i]
|
||||
end
|
||||
|
||||
def select_body
|
||||
|
|
Loading…
Reference in a new issue