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
Add a warnings addendum file and a --mostly-hide-warnings switch #82
Warnings addendum file should be placed in same directory as PDF always if there are any warnings. It should be called _warnings.txt. Suggest we write another logging handler for this.
Also, if there are warnings, the original email should also be placed in the same directory as the PDF, called, _original.eml.
Warnings should also be output to stderr unless --mostly-hide-warnings is passed, in which case they shouldn't (and email2pdf shouldn't exit with a 1). Can be implemented by syserr_handler.setLevel(logging.ERROR), plus needs to exit with rc=0.