# HG changeset patch # User Erik Forsberg # Date 1178986494 0 # Node ID f4e8dc583256188c359ab6563e2ddc71b6eff859 # Parent d1eb694edcc797f4cdf5030edebce60b0e0be7c2 Restored subject parser regexp to the string it was before the... ...implementation of customization of it, i.e., the version from CVS revision 1.184 of mailgw.py. This makes 'testFollowupTitleMatchMultiRe' work again. diff -r d1eb694edcc7 -r f4e8dc583256 roundup/configuration.py --- a/roundup/configuration.py Wed May 09 06:18:52 2007 +0000 +++ b/roundup/configuration.py Sat May 12 16:14:54 2007 +0000 @@ -1,6 +1,6 @@ # Roundup Issue Tracker configuration support # -# $Id: configuration.py,v 1.42 2007-04-03 06:36:08 a1s Exp $ +# $Id: configuration.py,v 1.43 2007-05-12 16:14:54 forsberg Exp $ # __docformat__ = "restructuredtext" @@ -685,7 +685,7 @@ "will match an issue for the interval after the issue's\n" "creation or last activity. The interval is a standard\n" "Roundup interval."), - (RegExpOption, "refwd_re", "\s*\W?\s*(fw|fwd|re|aw|sv|ang)\W\s*", + (RegExpOption, "refwd_re", "(\s*\W?\s*(fw|fwd|re|aw|sv|ang)\W)+", "Regular expression matching a single reply or forward\n" "prefix prepended by the mailer. This is explicitly\n" "stripped from the subject during parsing."), diff -r d1eb694edcc7 -r f4e8dc583256 roundup/mailgw.py --- a/roundup/mailgw.py Wed May 09 06:18:52 2007 +0000 +++ b/roundup/mailgw.py Sat May 12 16:14:54 2007 +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.187 2007-04-03 06:43:30 a1s Exp $ +$Id: mailgw.py,v 1.188 2007-05-12 16:14:54 forsberg Exp $ """ __docformat__ = 'restructuredtext' @@ -636,7 +636,7 @@ 'argswhole']) # Look for Re: et. al. Used later on for MAILGW_SUBJECT_CONTENT_MATCH - re_re = r"(?P%s)*\s*" % config["MAILGW_REFWD_RE"].pattern + re_re = r"(?P%s)\s*" % config["MAILGW_REFWD_RE"].pattern m = re.match(re_re, tmpsubject, re.IGNORECASE|re.VERBOSE|re.UNICODE) if m: m = m.groupdict()