X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.py;h=9db427893301d1455214134f1d6cbddde0d6738a;hb=2c4b69435e4b6ac5d3a5eb78f7ca86405132f7ca;hp=884f3582dd2b6b6987787b093623199bb4fddad0;hpb=1ef6975c250135fce771bd1217f12dca48959da3;p=mimedecode.git diff --git a/mimedecode.py b/mimedecode.py index 884f358..9db4278 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -258,12 +258,11 @@ def decode_message(msg): if msg.epilogue: output(msg.epilogue) - else: - if msg.has_key("Content-Type"): # Simple one-part message - decode it - decode_part(msg) + elif msg.has_key("Content-Type"): # Simple one-part message - decode it + decode_part(msg) - else: # Not a message, just text - copy it literally - output(msg.as_string()) + else: # Not a message, just text - copy it literally + output(msg.as_string()) class GlobalOptions: