andrewferrier / email2pdf

Script to convert emails to PDF from the command-line, as well as detach recognized attachments. Helps to process incoming emails and assist automatically with a non-paper paperwork workflow. Designed to work in tandem with getmail to convert forwarded emails to PDF automatically.
MIT License
68 stars 35 forks source link

Handle case where there is no message body (e.g. text/plain or text/html), but are still attachments and --no-body has been used #94

Closed andrewferrier closed 9 years ago

andrewferrier commented 9 years ago

Currently fails like this:

Traceback (most recent call last): File "/Users/ferriera/gitco/github/email2pdf/email2pdf", line 645, in call_main (warning_pending, mostly_hide_warnings) = main(argv, syslog_handler, syserr_handler) File "/Users/ferriera/gitco/github/email2pdf/email2pdf", line 104, in main (payload, parts_already_used) = handle_message_body(input_email) File "/Users/ferriera/gitco/github/email2pdf/email2pdf", line 303, in handle_message_body assert part is not None