Open all files in binary mode. Output os.linesep instead of '\n'.
+ Test --save-headers|body|message masks one after another to allow
+ saving a message or a subpart to more than one file.
Version 2.5.0 (2014-03-18)
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: