From: richard Date: Mon, 21 Oct 2002 22:03:09 +0000 (+0000) Subject: - force non-word boundary to match re: in subject (sf bug 626303) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b720a9e098b96974558c3ad1538bec76b60bff90;p=roundup.git - force non-word boundary to match re: in subject (sf bug 626303) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1368 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 62653bc..9f78406 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,7 @@ are given with the most recent entry first. - bugfix in boolean templating - remember the change note on bad submissions (sf bug 625989) - highlight required form fields (sf bug 625989) +- force non-word boundary to match re: in subject (sf bug 626303) 2002-10-16 0.5.1 diff --git a/roundup/mailgw.py b/roundup/mailgw.py index 90dca34..3aa50b9 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,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.97 2002-10-15 07:25:49 richard Exp $ +$Id: mailgw.py,v 1.98 2002-10-21 22:03:09 richard Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -130,7 +130,7 @@ class Message(mimetools.Message): s.seek(0) return Message(s) -subject_re = re.compile(r'(?P\s*\W?\s*(fwd|re|aw)\s*\W?\s*)*' +subject_re = re.compile(r'(?P\s*\W?\s*(fwd|re|aw)\W\s*)*' r'\s*(?P")?(\[(?P[^\d\s]+)(?P\d+)?\])?' r'\s*(?P[^[]+)?"?(\[(?P<args>.+?)\])?', re.I)