Skip to content

Commit 2008575

Browse files
author
Richard Jones
committed
Default to "text/plain" if no Content-Type header is present in email
(thanks Hauke Duden)
1 parent cfc4389 commit 2008575

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Fixed:
1010
http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/10040
1111
thanks to Hauke Duden for reporting these.
1212
- frontends/roundup.cgi got out of sync with the roundup.cgi.Client API
13+
- Default to "text/plain" if no Content-Type header is present in email
14+
(thanks Hauke Duden)
1315

1416

1517
2010-02-23 1.5.0

doc/acknowledgements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Bruno Damour,
2929
Bradley Dean,
3030
Toby Dickenson,
3131
Paul F. Dubois,
32+
Hauke Duden,
3233
Eric Earnst,
3334
Peter Eisentraut,
3435
Andrew Eland,

roundup/mailgw.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ def getparts(self):
246246

247247
def getheader(self, name, default=None):
248248
hdr = mimetools.Message.getheader(self, name, default)
249+
# TODO are there any other False values possible?
250+
# TODO if not hdr: return hdr
251+
if hdr is None:
252+
return None
249253
if not hdr:
250254
return ''
251255
if hdr:

0 commit comments

Comments
 (0)