diff options
author | francis <francis> | 2008-11-21 01:09:56 +0000 |
---|---|---|
committer | francis <francis> | 2008-11-21 01:09:56 +0000 |
commit | 0a60234176af18f43956bec0747ce0c16dde583f (patch) | |
tree | cead368c6a5cce255b6aa0c49651a8771412744f | |
parent | dc3c38bc6eeff78bf61f59cc945f9e9cc11544ea (diff) |
Don't allow replies to Mailer-Daemon
-rw-r--r-- | app/models/incoming_message.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index de45415d3..51c63ae65 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.168 2008-11-10 18:25:12 francis Exp $ +# $Id: incoming_message.rb,v 1.169 2008-11-21 01:09:56 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -1004,6 +1004,10 @@ class IncomingMessage < ActiveRecord::Base if !prefix.nil? && prefix == 'postmaster' return false end + # likewise Mailer-Daemon + if !prefix.nil? && prefix == 'Mailer-Daemon' + return false + end return true end |