diff options
author | Robin Houston <robin@lenny.robin> | 2011-09-08 19:52:02 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-09-08 19:52:02 +0100 |
commit | f6a9a1949e3430f16f69672bf429141afd08efdf (patch) | |
tree | 498498b1656f86b2af892830fbe6e29e27a2d597 /app/models/incoming_message.rb | |
parent | 1e9e253975799b0139b495f833ddc336c7a46c92 (diff) |
Extend the detection of DNR addresses
Extend the detection of do-not-reply addresses to detect
<do_not_reply@> <do-not-reply@>, etc.
Example: http://www.whatdotheyknow.com/request/the_number_of_complaints_for_ace#incoming-207024
Diffstat (limited to 'app/models/incoming_message.rb')
-rw-r--r-- | app/models/incoming_message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 16ae38b92..17dd333e6 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -1305,7 +1305,7 @@ class IncomingMessage < ActiveRecord::Base prefix = email prefix =~ /^(.*)@/ prefix = $1 - if !prefix.nil? && prefix.downcase.match(/^(postmaster|mailer-daemon|auto_reply|donotreply|no.reply)$/) + if !prefix.nil? && prefix.downcase.match(/^(postmaster|mailer-daemon|auto_reply|do.?not.?reply|no.reply)$/) return false end |