summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a72b95e)
raw | patch | inline | side by side (parent: a72b95e)
author | neaj <neaj@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 25 Jun 2003 08:02:51 +0000 (08:02 +0000) | ||
committer | neaj <neaj@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 25 Jun 2003 08:02:51 +0000 (08:02 +0000) |
None).
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1779 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1779 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 13a7f939af16ec292777f07f036d9b9b7f428b32..f71e63fbbc049d28d2a53e8fb8d3e5503cebd8ad 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.125 2003-06-24 12:39:20 neaj Exp $
+$Id: mailgw.py,v 1.126 2003-06-25 08:02:51 neaj Exp $
'''
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
def getheader(self, name, default=None):
hdr = mimetools.Message.getheader(self, name, default)
- hdr = hdr.replace('\n','') # Inserted by rfc822.readheaders
+ if hdr:
+ hdr = hdr.replace('\n','') # Inserted by rfc822.readheaders
return rfc2822.decode_header(hdr)
class MailGW: