Mercurial > p > roundup > code
changeset 226:8af4945246cb
Make the mail parser a little more robust.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 13 Aug 2001 23:02:54 +0000 |
| parents | 49748e59852a |
| children | 359ba665d346 |
| files | roundup/mailgw.py |
| diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/mailgw.py Mon Aug 13 23:01:53 2001 +0000 +++ b/roundup/mailgw.py Mon Aug 13 23:02:54 2001 +0000 @@ -72,7 +72,7 @@ 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 @@ 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 @@ # # $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. #
