Skip to content

Commit 52c699b

Browse files
author
Richard Jones
committed
Case-insensitive match for ISSUE_TRACKER_EMAIL in address in e-mail.
1 parent 915efd7 commit 52c699b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

roundup/mailgw.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.26 2001-10-30 00:54:45 richard Exp $
75+
$Id: mailgw.py,v 1.27 2001-10-30 11:26:10 richard Exp $
7676
'''
7777

7878

@@ -251,8 +251,9 @@ def handle_message(self, message):
251251
#
252252
author = self.db.uidFromAddress(message.getaddrlist('from')[0])
253253
recipients = []
254+
tracker_email = self.ISSUE_TRACKER_EMAIL.lower()
254255
for recipient in message.getaddrlist('to') + message.getaddrlist('cc'):
255-
if recipient[1].strip().lower() == self.ISSUE_TRACKER_EMAIL:
256+
if recipient[1].strip().lower() == tracker_email:
256257
continue
257258
recipients.append(self.db.uidFromAddress(recipient))
258259

@@ -444,6 +445,12 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
444445

445446
#
446447
# $Log: not supported by cvs2svn $
448+
# Revision 1.26 2001/10/30 00:54:45 richard
449+
# Features:
450+
# . #467129 ] Lossage when username=e-mail-address
451+
# . #473123 ] Change message generation for author
452+
# . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue.
453+
#
447454
# Revision 1.25 2001/10/28 23:22:28 richard
448455
# fixed bug #474749 ] Indentations lost
449456
#

0 commit comments

Comments
 (0)