X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=TODO;h=d8c3457abf9f6ce9b9b15cd3ce0d265c5a9e7483;hp=dde7594ef4a6da9c36bde3974b3a1717c399323c;hb=972bae8625e655e34170c588561eed078ceb37d9;hpb=f8a198f4052785feb8355a899b9f7aea70c85eda diff --git a/TODO b/TODO index dde7594..d8c3457 100644 --- a/TODO +++ b/TODO @@ -1,40 +1,34 @@ -Change option -d to accept a list of headers: -d h1,h2,h3,... +flake8. -Change option -d to decode all headers and accept a list of exceptions: --d *,-h1,-h2,... +GitHub, Travis, AppVeyor, PyPI. -Change option -p to accept lists of headers and parameters: --p h1,h2,h3:p1,p2,p3 -Allow * and exceptions: --p h1,h2,h3:*,-p1,-p2,-p3 --p *,-h1,-h2,-h3:p1,p2,p3 --p *,-h1,-h2,-h3:*,-p1,-p2,-p3 +Split mimedecode.py into a library and a small script. +Move formatparam_27.py and mimedecode_version.py to the library. +Rename mimedecode_version.py to __version__.py. -#Add option --params=header to decode all parameters for the header -#(except -p). -# -# -#Add options -#--all-headers to decode all headers (except -d) -#--all-params to decode all parameters for all headers (except -p) -#--all-headers-params to decode all header values + decode all parameters -#for all headers (except -d and -p). +Move mimedecode to http://phdru.name/Software/Python/mimedecode/ . -Add option -s to save decoded parts to files. +Installers. -Add option -O to set the destination directory. +Process message/delivery-status and text/rfc822-headers subparts. -Add an option to skip content-decoding a binary attachement (leave it as -base64 or such). + +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-*-exncoding +-d content-*,-content-*-encoding -Never touch multipart/encrypted and multipart/signed. +Add option --save-as='%format' to generate names for --save-* files. Develop +a DSL to conditionally use values of headers, parameters and the counter.