Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1294:3a38af77b87c
force non-word boundary to match re: in subject [SF#626303]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 21 Oct 2002 22:03:09 +0000 |
| parents | 284a9d6b3cf9 |
| children | b2d04ce03802 |
line wrap: on
line diff
--- a/roundup/mailgw.py Mon Oct 21 00:50:46 2002 +0000 +++ b/roundup/mailgw.py Mon Oct 21 22:03:09 2002 +0000 @@ -73,7 +73,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.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 @@ s.seek(0) return Message(s) -subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re|aw)\s*\W?\s*)*' +subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re|aw)\W\s*)*' r'\s*(?P<quote>")?(\[(?P<classname>[^\d\s]+)(?P<nodeid>\d+)?\])?' r'\s*(?P<title>[^[]+)?"?(\[(?P<args>.+?)\])?', re.I)
