From edd0827cb6fe24aa2c525c705509069785659e47 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 13 Aug 2001 23:02:54 +0000 Subject: [PATCH] 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 --- roundup/mailgw.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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. # -- 2.30.2