From 54422faef0b064964e1902663a9fc069f57ab7a3 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 30 Oct 2001 11:26:10 +0000 Subject: [PATCH] Case-insensitive match for ISSUE_TRACKER_EMAIL in address in e-mail. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@350 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/mailgw.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roundup/mailgw.py b/roundup/mailgw.py index 3826a09..72b636f 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -72,7 +72,7 @@ are calling the create() method to create a new node). If an auditor raises an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.26 2001-10-30 00:54:45 richard Exp $ +$Id: mailgw.py,v 1.27 2001-10-30 11:26:10 richard Exp $ ''' @@ -251,8 +251,9 @@ Subject was: "%s" # author = self.db.uidFromAddress(message.getaddrlist('from')[0]) recipients = [] + tracker_email = self.ISSUE_TRACKER_EMAIL.lower() for recipient in message.getaddrlist('to') + message.getaddrlist('cc'): - if recipient[1].strip().lower() == self.ISSUE_TRACKER_EMAIL: + if recipient[1].strip().lower() == tracker_email: continue recipients.append(self.db.uidFromAddress(recipient)) @@ -444,6 +445,12 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), # # $Log: not supported by cvs2svn $ +# Revision 1.26 2001/10/30 00:54:45 richard +# Features: +# . #467129 ] Lossage when username=e-mail-address +# . #473123 ] Change message generation for author +# . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue. +# # Revision 1.25 2001/10/28 23:22:28 richard # fixed bug #474749 ] Indentations lost # -- 2.30.2