Skip to content

Commit 5a00386

Browse files
author
Richard Jones
committed
handle stripping of "AW:" from subject line
1 parent 301c1e9 commit 5a00386

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Fixed:
2121
. fixed back_bsddb so it passed the journal tests
2222
. fixed status changes in mail gateway (eg. unread -> chatting)
2323
. we'll actually distribute the frontends directory now, as advertised...
24+
. handle stripping of "AW:" from subject line
2425

2526

2627
2002-01-16 - 0.4.0b2

roundup/mailgw.py

Lines changed: 5 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.56 2002-01-22 11:54:45 rochecompaan Exp $
76+
$Id: mailgw.py,v 1.57 2002-01-22 22:27:43 richard Exp $
7777
'''
7878

7979

@@ -119,7 +119,7 @@ def getPart(self):
119119
s.seek(0)
120120
return Message(s)
121121

122-
subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re)\s*\W?\s*)*'
122+
subject_re = re.compile(r'(?P<refwd>\s*\W?\s*(fwd|re|aw)\s*\W?\s*)*'
123123
r'\s*(\[(?P<classname>[^\d\s]+)(?P<nodeid>\d+)?\])'
124124
r'\s*(?P<title>[^[]+)?(\[(?P<args>.+?)\])?', re.I)
125125

@@ -754,6 +754,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
754754

755755
#
756756
# $Log: not supported by cvs2svn $
757+
# Revision 1.56 2002/01/22 11:54:45 rochecompaan
758+
# Fixed status change in mail gateway.
759+
#
757760
# Revision 1.55 2002/01/21 10:05:47 rochecompaan
758761
# Feature:
759762
# . the mail gateway now responds with an error message when invalid

0 commit comments

Comments
 (0)