Mercurial > p > roundup > code
diff roundup/mailgw.py @ 3171:cfe7d8cb9794
ignore AutoReply messages (patch [SF#1085051])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 14 Feb 2005 05:54:41 +0000 |
| parents | 57b60bda9473 |
| children | 7faae85e1e33 |
line wrap: on
line diff
--- a/roundup/mailgw.py Mon Feb 14 05:50:31 2005 +0000 +++ b/roundup/mailgw.py Mon Feb 14 05:54:41 2005 +0000 @@ -72,7 +72,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.161 2005-02-14 02:48:10 richard Exp $ +$Id: mailgw.py,v 1.162 2005-02-14 05:54:41 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -579,8 +579,9 @@ if message.getheader('x-roundup-loop', ''): raise IgnoreLoop - # detect Precedence: Bulk - if (message.getheader('precedence', '') == 'bulk'): + # detect Precedence: Bulk, or Microsoft Outlook autoreplies + if (message.getheader('precedence', '') == 'bulk' + or message.getheader('subject', '').lower().find("autoreply") > 0): raise IgnoreBulk # config is used many times in this method.
