@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272an exception, the original message is bounced back to the sender with the
7373explanatory 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