From: richard Date: Mon, 13 Aug 2001 23:02:54 +0000 (+0000) Subject: Make the mail parser a little more robust. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=edd0827cb6fe24aa2c525c705509069785659e47;p=roundup.git Make the mail parser a little more robust. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@233 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/mailgw.py b/roundup/mailgw.py index c8a3151..f715ee8 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -72,7 +72,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.13 2001-08-12 06:32:36 richard Exp $ +$Id: mailgw.py,v 1.14 2001-08-13 23:02:54 richard Exp $ ''' @@ -167,7 +167,7 @@ class MailGW: Parse the message as per the module docstring. ''' # handle the subject line - subject = message.getheader('subject') + subject = message.getheader('subject', '') m = subject_re.match(subject) if not m: raise MailUsageError, ''' @@ -398,6 +398,9 @@ def parseContent(content, blank_line=re.compile(r'[\r\n]+\s*[\r\n]+'), # # $Log: not supported by cvs2svn $ +# Revision 1.13 2001/08/12 06:32:36 richard +# using isinstance(blah, Foo) now instead of isFooType +# # Revision 1.12 2001/08/08 01:27:00 richard # Added better error handling to mailgw. #