Convert mimedecode.py library from global functions to a class. flake8. PyPI. Release 3.0. Replace getopt with argparse. Move mimedecode to https://phdru.name/Software/Python/mimedecode/ . Release 3.1. Installers. Process message/delivery-status and text/rfc822-headers subparts. Never decode subparts of multipart/encrypted and multipart/signed messages but allow processing of headers of the top-level part, ignoring the top-level part with -I, aborting it with -e or saving the part or subparts with --save-*. Convert dates to the current locale and timezone (with an option?) Allow -d and -p accept shell-like patterns and/or regular expressions: -d content-*,-content-*-encoding Add option --save-as='%format' to generate names for --save-* files. Develop a DSL to conditionally use values of headers, parameters and the counter.