2015-09-05 | Paul Boddie | raw files shortlog changelog graph | Remove Content-Transfer-Encoding headers so that the output can be reparsed correctly by the email module. | |
tools/showmail.py (file) |
1.1 --- a/tools/showmail.py Fri Sep 04 23:26:14 2015 +0200 1.2 +++ b/tools/showmail.py Sat Sep 05 00:36:05 2015 +0200 1.3 @@ -5,7 +5,8 @@ 1.4 1.5 def decode(part): 1.6 for key, value in part.items(): 1.7 - print "%s: %s" % (key, value) 1.8 + if key != "Content-Transfer-Encoding": 1.9 + print "%s: %s" % (key, value) 1.10 print 1.11 decoded = part.get_payload(decode=True) 1.12 if decoded: