# HG changeset patch # User Paul Boddie # Date 1441406165 -7200 # Node ID 58d06d81028ffd3eec4e646effdb4093f37def84 # Parent b5bdf9dcad0f9fda7c6a5df941607720a5637d56 Remove Content-Transfer-Encoding headers so that the output can be reparsed correctly by the email module. diff -r b5bdf9dcad0f -r 58d06d81028f tools/showmail.py --- a/tools/showmail.py Fri Sep 04 23:26:14 2015 +0200 +++ b/tools/showmail.py Sat Sep 05 00:36:05 2015 +0200 @@ -5,7 +5,8 @@ def decode(part): for key, value in part.items(): - print "%s: %s" % (key, value) + if key != "Content-Transfer-Encoding": + print "%s: %s" % (key, value) print decoded = part.get_payload(decode=True) if decoded: