Code

Default to "text/plain" if no Content-Type header is present in email (thanks Hauke...
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 19 Apr 2010 03:56:54 +0000 (03:56 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 19 Apr 2010 03:56:54 +0000 (03:56 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4481 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
doc/acknowledgements.txt
roundup/mailgw.py

index 3be78b0409f550080a13d9c388a4662774b592f8..517367656465208dea7124f2d758af4fac100ce7 100644 (file)
@@ -10,6 +10,8 @@ Fixed:
   http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/10040
   thanks to Hauke Duden for reporting these.
 - frontends/roundup.cgi got out of sync with the roundup.cgi.Client API
+- Default to "text/plain" if no Content-Type header is present in email
+  (thanks Hauke Duden)
 
 
 2010-02-23 1.5.0
index c7cdcc2c97db849d3cfb42cb46a90ec74b187f49..105bc6254f0e1a57f0429021f7f494e479fc866d 100644 (file)
@@ -29,6 +29,7 @@ Bruno Damour,
 Bradley Dean,
 Toby Dickenson,
 Paul F. Dubois,
+Hauke Duden,
 Eric Earnst,
 Peter Eisentraut,
 Andrew Eland,
index 5055756c948c478b27624929f57ca78201696b6a..61f3cdfa8ba95aa38f87550eb4de888ed1791bc2 100644 (file)
@@ -246,6 +246,10 @@ class Message(mimetools.Message):
 
     def getheader(self, name, default=None):
         hdr = mimetools.Message.getheader(self, name, default)
+        # TODO are there any other False values possible?
+        # TODO if not hdr: return hdr
+        if hdr is None:
+            return None
         if not hdr:
             return ''
         if hdr: