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

Blacklist certain attachment regexs #83

Open andrewferrier opened 9 years ago

andrewferrier commented 9 years ago

e.g.

.*email_oyster_logo.*

Needs to be configurable.

Use https://docs.python.org/3/library/configparser.html to support configuration files (align them with argparse options?). See https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_known_args and http://stackoverflow.com/a/5826167/27641