Skip to content

Commit 6d71862

Browse files
author
Richard Jones
committed
force non-word boundary to match re: in subject [SF#626303]
1 parent 2cf003d commit 6d71862

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ are given with the most recent entry first.
1010
- bugfix in boolean templating
1111
- remember the change note on bad submissions (sf bug 625989)
1212
- highlight required form fields (sf bug 625989)
13+
- force non-word boundary to match re: in subject (sf bug 626303)
1314

1415

1516
2002-10-16 0.5.1

roundup/mailgw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.97 2002-10-15 07:25:49 richard Exp $
76+
$Id: mailgw.py,v 1.98 2002-10-21 22:03:09 richard Exp $
7777
'''
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -130,7 +130,7 @@ def getPart(self):
130130
s.seek(0)
131131
return Message(s)
132132

133-
subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re|aw)\s*\W?\s*)*'
133+
subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re|aw)\W\s*)*'
134134
r'\s*(?P<quote>")?(\[(?P<classname>[^\d\s]+)(?P<nodeid>\d+)?\])?'
135135
r'\s*(?P<title>[^[]+)?"?(\[(?P<args>.+?)\])?', re.I)
136136

0 commit comments

Comments
 (0)