diff -x '*.pyc' -x '*~' -r -C 3 roundup-0.8.0b1.orig/roundup/mailgw.py roundup-0.8.0b1/roundup/mailgw.py *** roundup-0.8.0b1.orig/roundup/mailgw.py 2004-11-18 04:52:11.000000000 +0000 --- roundup-0.8.0b1/roundup/mailgw.py 2004-12-14 11:01:36.000000000 +0000 *************** *** 579,586 **** if message.getheader('x-roundup-loop', ''): raise IgnoreLoop ! # detect Precedence: Bulk ! if (message.getheader('precedence', '') == 'bulk'): raise IgnoreBulk # config is used many times in this method. --- 579,587 ---- if message.getheader('x-roundup-loop', ''): raise IgnoreLoop ! # 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. diff -x '*.pyc' -x '*~' -r -C 3 roundup-0.8.0b1.orig/test/test_mailgw.py roundup-0.8.0b1/test/test_mailgw.py *** roundup-0.8.0b1.orig/test/test_mailgw.py 2004-10-27 23:47:13.000000000 +0100 --- roundup-0.8.0b1/test/test_mailgw.py 2004-12-14 10:30:35.000000000 +0000 *************** *** 979,985 **** self.assertEqual(l, [self.richard_id, self.mary_id]) return nodeid - def testDejaVu(self): self.assertRaises(IgnoreLoop, self._handle_mail, '''Content-Type: text/plain; --- 979,984 ---- *************** *** 1008,1013 **** --- 1007,1025 ---- Hi, I'm on holidays, and this is a dumb auto-responder. ''') + def testAutoReplyEmailsAreIgnored(self): + self.assertRaises(IgnoreBulk, self._handle_mail, + '''Content-Type: text/plain; + charset="iso-8859-1" + From: Chef + To: issue_tracker@your.tracker.email.domain.example + Cc: richard@test + Message-Id: + Subject: Re: [issue] Out of office AutoReply: Back next week + + Hi, I'm back in the office next week + ''') + def test_suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(MailgwTestCase))