summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8ade3c)
raw | patch | inline | side by side (parent: d8ade3c)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 21 Oct 2002 22:03:09 +0000 (22:03 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 21 Oct 2002 22:03:09 +0000 (22:03 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1368 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 62653bc7c3f4a64690df7619c99814e1eb62acc4..9f78406caba8ba911c38afb3ccd3fceafb186335 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- 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 90dca340e6fdb3168fb143294853e21b97c8cd60..3aa50b9afdfec1b7ea01775de637494bb4e55c4c 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
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
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)