From: richard Date: Tue, 22 Jan 2002 22:27:43 +0000 (+0000) Subject: . handle stripping of "AW:" from subject line X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2361f4681375a8424cf7d7d0512f6917ba58c85;p=roundup.git . handle stripping of "AW:" from subject line git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@585 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 53b56c4..15126c7 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -21,6 +21,7 @@ Fixed: . fixed back_bsddb so it passed the journal tests . fixed status changes in mail gateway (eg. unread -> chatting) . we'll actually distribute the frontends directory now, as advertised... + . handle stripping of "AW:" from subject line 2002-01-16 - 0.4.0b2 diff --git a/roundup/mailgw.py b/roundup/mailgw.py index b80ee8f..6560af2 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.56 2002-01-22 11:54:45 rochecompaan Exp $ +$Id: mailgw.py,v 1.57 2002-01-22 22:27:43 richard Exp $ ''' @@ -119,7 +119,7 @@ class Message(mimetools.Message): s.seek(0) return Message(s) -subject_re = re.compile(r'(?P\s*\W?\s*(fwd|re)\s*\W?\s*)*' +subject_re = re.compile(r'(?P\s*\W?\s*(fwd|re|aw)\s*\W?\s*)*' r'\s*(\[(?P[^\d\s]+)(?P\d+)?\])' r'\s*(?P[^[]+)?(\[(?P<args>.+?)\])?', re.I) @@ -754,6 +754,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), # # $Log: not supported by cvs2svn $ +# Revision 1.56 2002/01/22 11:54:45 rochecompaan +# Fixed status change in mail gateway. +# # Revision 1.55 2002/01/21 10:05:47 rochecompaan # Feature: # . the mail gateway now responds with an error message when invalid