Skip to content

Commit 3c04422

Browse files
author
Richard Jones
committed
oops ;)
1 parent 2e34c4c commit 3c04422

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

roundup/mailgw.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.10 2001-08-07 00:24:42 richard Exp $
75+
$Id: mailgw.py,v 1.11 2001-08-08 00:08:03 richard Exp $
7676
'''
7777

7878

@@ -154,9 +154,10 @@ def handle_message(self, message):
154154
Parse the message as per the module docstring.
155155
'''
156156
# handle the subject line
157-
m = subject_re.match(message.getheader('subject'))
157+
subject = message.getheader('subject')
158+
m = subject_re.match(subject)
158159
if not m:
159-
raise ValueError, 'No [designator] found in subject "%s"'
160+
raise ValueError, 'No [designator] found in subject "%s"'%subject
160161
classname = m.group('classname')
161162
nodeid = m.group('nodeid')
162163
title = m.group('title').strip()
@@ -334,6 +335,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'),
334335

335336
#
336337
# $Log: not supported by cvs2svn $
338+
# Revision 1.10 2001/08/07 00:24:42 richard
339+
# stupid typo
340+
#
337341
# Revision 1.9 2001/08/07 00:15:51 richard
338342
# Added the copyright/license notice to (nearly) all files at request of
339343
# Bizar Software.

0 commit comments

Comments
 (0)