]> git.phdru.name Git - mimedecode.git/blobdiff - mimedecode.py
Allow saving a message or a subpart to more than one file
[mimedecode.git] / mimedecode.py
index 0714c874863da054c9f9b01f9b0a0e4d7958d551..6567e9926b562e0c7504cdd849c3ba183f447eba 100755 (executable)
@@ -364,9 +364,9 @@ def decode_part(msg):
     for content_type in masks:
         if content_type in g.save_headers_mask:
             _save_message(msg, outstring, save_headers=True, save_body=False)
-        elif content_type in g.save_body_mask:
+        if content_type in g.save_body_mask:
             _save_message(msg, outstring, save_headers=False, save_body=True)
-        elif content_type in g.save_message_mask:
+        if content_type in g.save_message_mask:
             _save_message(msg, outstring, save_headers=True, save_body=True)
 
     for content_type in masks: