]> git.phdru.name Git - mimedecode.git/log
mimedecode.git
10 years agoVersion 2.5.0 v2.5.0
Oleg Broytman [Mon, 17 Mar 2014 23:12:57 +0000 (03:12 +0400)]
Version 2.5.0

10 years agoAvoid calling get_content_maintype, just split ctype instead
Oleg Broytman [Mon, 17 Mar 2014 23:08:01 +0000 (03:08 +0400)]
Avoid calling get_content_maintype, just split ctype instead

10 years agoGuess filename extension for --save-* from the content type
Oleg Broytman [Mon, 17 Mar 2014 19:40:25 +0000 (23:40 +0400)]
Guess filename extension for --save-* from the content type

10 years agoUpdate documentation
Oleg Broytman [Mon, 17 Mar 2014 16:19:29 +0000 (20:19 +0400)]
Update documentation

10 years agoDocument cp -p mimedecode.docbook
Oleg Broytman [Mon, 17 Mar 2014 15:02:36 +0000 (19:02 +0400)]
Document cp -p mimedecode.docbook

Copy mimedecode.docbook with timestamp to avoid rebuilding.

10 years agoTODO: no boundary (-I)
Oleg Broytman [Sun, 16 Mar 2014 19:32:56 +0000 (23:32 +0400)]
TODO: no boundary (-I)

10 years agoCopy mimedecode.docbook
Oleg Broytman [Sat, 15 Mar 2014 20:27:42 +0000 (00:27 +0400)]
Copy mimedecode.docbook

Copy mimedecode.docbook preserving its timestamp to avoid forcing users
to rebuild docs.

10 years agoAdd tests for --save-*
Oleg Broytman [Sat, 15 Mar 2014 20:23:58 +0000 (00:23 +0400)]
Add tests for --save-*

10 years agoDo not recode filename if it isn't recoded yet
Oleg Broytman [Sat, 15 Mar 2014 20:22:56 +0000 (00:22 +0400)]
Do not recode filename if it isn't recoded yet

10 years agoCheck filenames for --save-* for forbidden characters
Oleg Broytman [Sat, 15 Mar 2014 17:43:16 +0000 (21:43 +0400)]
Check filenames for --save-* for forbidden characters

10 years agoAdd more details about -Bbeit options
Oleg Broytman [Sat, 15 Mar 2014 15:34:42 +0000 (19:34 +0400)]
Add more details about -Bbeit options

10 years agoUpdate TODO
Oleg Broytman [Thu, 13 Mar 2014 21:29:41 +0000 (01:29 +0400)]
Update TODO

10 years agoCreate the directory for the output files
Oleg Broytman [Thu, 13 Mar 2014 21:29:06 +0000 (01:29 +0400)]
Create the directory for the output files

Create the directory for the output files (-O) if it doesn't exits.

10 years agoopen_output_file
Oleg Broytman [Thu, 13 Mar 2014 21:17:02 +0000 (01:17 +0400)]
open_output_file

10 years agoUse set_header to replace header's value in-place
Oleg Broytman [Thu, 13 Mar 2014 00:05:01 +0000 (04:05 +0400)]
Use set_header to replace header's value in-place

10 years agoInline _decode_header_param
Oleg Broytman [Thu, 13 Mar 2014 00:02:54 +0000 (04:02 +0400)]
Inline _decode_header_param

10 years agoInline recode
Oleg Broytman [Thu, 13 Mar 2014 00:00:59 +0000 (04:00 +0400)]
Inline recode

10 years agoRaise error after saving the part
Oleg Broytman [Wed, 12 Mar 2014 23:52:40 +0000 (03:52 +0400)]
Raise error after saving the part

10 years agoAllow -t 'text/*' -b 'image/*' -B '*/*'
Oleg Broytman [Wed, 12 Mar 2014 23:00:26 +0000 (03:00 +0400)]
Allow -t 'text/*' -b 'image/*' -B '*/*'

10 years agoDocumentation update
Oleg Broytman [Wed, 12 Mar 2014 19:14:26 +0000 (23:14 +0400)]
Documentation update

10 years agoBetter description for --save-message
Oleg Broytman [Wed, 12 Mar 2014 19:00:48 +0000 (23:00 +0400)]
Better description for --save-message

--save-message saves headers + body.

10 years agoBetter description for -b
Oleg Broytman [Wed, 12 Mar 2014 18:59:20 +0000 (22:59 +0400)]
Better description for -b

Unlike -B, -b performs content-transfer-decoding.

10 years agoChange plans
Oleg Broytman [Tue, 11 Mar 2014 16:52:14 +0000 (20:52 +0400)]
Change plans

10 years agoDocument that the directory for -O must exist
Oleg Broytman [Tue, 11 Mar 2014 16:46:25 +0000 (20:46 +0400)]
Document that the directory for -O must exist

10 years agoReport actual content type; do not use quotes
Oleg Broytman [Tue, 11 Mar 2014 16:41:06 +0000 (20:41 +0400)]
Report actual content type; do not use quotes

10 years agoAdd options --save-headers/body/message
Oleg Broytman [Tue, 11 Mar 2014 16:39:11 +0000 (20:39 +0400)]
Add options --save-headers/body/message

10 years agoDocument -o more clearly
Oleg Broytman [Tue, 11 Mar 2014 15:46:30 +0000 (19:46 +0400)]
Document -o more clearly

Document that -o saves output to the file related to the destination
directory from option -O.

10 years agoAdd option -O to set the destination directory
Oleg Broytman [Mon, 10 Mar 2014 20:36:47 +0000 (00:36 +0400)]
Add option -O to set the destination directory

10 years agoRename gopts to g
Oleg Broytman [Mon, 10 Mar 2014 20:21:58 +0000 (00:21 +0400)]
Rename gopts to g

10 years agoRename get_opt to get_opts
Oleg Broytman [Mon, 10 Mar 2014 20:20:27 +0000 (00:20 +0400)]
Rename get_opt to get_opts

10 years agoFix a minor bug
Oleg Broytman [Mon, 10 Mar 2014 17:26:16 +0000 (21:26 +0400)]
Fix a minor bug

If a multipart message (or a subpart) lacks any textual content -
avoid putting an excessive newline.

10 years agoRemove str() calls
Oleg Broytman [Mon, 10 Mar 2014 16:22:36 +0000 (20:22 +0400)]
Remove str() calls

No need to convert payloads to strings - non-multipart payloads are
always strings.

10 years agoAdd option -B to skip content-transfer-decoding
Oleg Broytman [Mon, 10 Mar 2014 16:06:14 +0000 (20:06 +0400)]
Add option -B to skip content-transfer-decoding

10 years agoThe header for --set-param must exist
Oleg Broytman [Mon, 10 Mar 2014 15:24:07 +0000 (19:24 +0400)]
The header for --set-param must exist

10 years agoAdd option --set-param=header:param=value
Oleg Broytman [Sun, 9 Mar 2014 12:54:51 +0000 (16:54 +0400)]
Add option --set-param=header:param=value

Add option --set-param=header:param=value to set header parameter's value
(only at the top level).

10 years agoAdd option --set-header=header:value
Oleg Broytman [Sun, 9 Mar 2014 12:42:00 +0000 (16:42 +0400)]
Add option --set-header=header:value

Add option --set-header=header:value to set header's value (only at the
top level).

10 years agoTODO: add option --save-as='%format'
Oleg Broytman [Sat, 8 Mar 2014 22:28:41 +0000 (02:28 +0400)]
TODO: add option --save-as='%format'

10 years agoVersion 2.4.0 v2.4.0
Oleg Broytman [Sat, 8 Mar 2014 18:50:36 +0000 (22:50 +0400)]
Version 2.4.0

10 years agoPublish docs in html format
Oleg Broytman [Sat, 8 Mar 2014 18:48:37 +0000 (22:48 +0400)]
Publish docs in html format

10 years agoFix lists of parameters
Oleg Broytman [Sat, 8 Mar 2014 18:26:59 +0000 (22:26 +0400)]
Fix lists of parameters

10 years agoChange option -R to accept lists of headers and parameters
Oleg Broytman [Sat, 8 Mar 2014 18:21:40 +0000 (22:21 +0400)]
Change option -R to accept lists of headers and parameters

Change option -R to accept lists of headers and parameters:
-R h1,h2,h3:p1,p2,p3
-R h1,h2,h3:*,-p1,-p2,-p3
-R *,-h1,-h2,-h3:p1,p2,p3
-R *,-h1,-h2,-h3:*,-p1,-p2,-p3

10 years agoRemove option --remove-params
Oleg Broytman [Sat, 8 Mar 2014 17:14:01 +0000 (21:14 +0400)]
Remove option --remove-params

10 years agoTODO: add options -s and -S
Oleg Broytman [Sat, 8 Mar 2014 16:58:09 +0000 (20:58 +0400)]
TODO: add options -s and -S

Rename option -s to --save-headers, --save-body and --save-message.

10 years agoChange option -r to accept a list of headers; * is allowed
Oleg Broytman [Sat, 8 Mar 2014 16:26:10 +0000 (20:26 +0400)]
Change option -r to accept a list of headers; * is allowed

Change option -r to accept a list of headers: -r h1,h2,h3,...

Asterisk is allowed to remove all headers and accept a list of exceptions:
-r *,-h1,-h2,...

10 years agoRefactor common code into _decode_headers_params
Oleg Broytman [Sat, 8 Mar 2014 16:07:51 +0000 (20:07 +0400)]
Refactor common code into _decode_headers_params

10 years agoAllow * and exceptions for -p in the parameters lists
Oleg Broytman [Sat, 8 Mar 2014 15:36:54 +0000 (19:36 +0400)]
Allow * and exceptions for -p in the parameters lists

Allow * and exceptions for -p in the parameters lists:
-p h1,h2,h3:*,-p1,-p2,-p3
-p *,-h1,-h2,-h3:*,-p1,-p2,-p3

10 years agoAllow * and exceptions for -p in the headers list
Oleg Broytman [Sat, 8 Mar 2014 14:51:43 +0000 (18:51 +0400)]
Allow * and exceptions for -p in the headers list

Allow * and exceptions for -p in the headers list:
-p *,-h1,-h2,-h3:p1,p2,p3

10 years agoChange option -p to accept lists
Oleg Broytman [Sat, 8 Mar 2014 14:33:18 +0000 (18:33 +0400)]
Change option -p to accept lists

Change option -p to accept lists of headers and parameters:
-p h1,h2,h3,..:p1,p2,p3,..

10 years agoChange option -d to decode all headers with exceptions
Oleg Broytman [Sat, 8 Mar 2014 13:41:32 +0000 (17:41 +0400)]
Change option -d to decode all headers with exceptions

Change option -d to decode all headers and accept a list of exceptions:
-d *,-h1,-h2,...

10 years agoChange option -d to accept a list of headers
Oleg Broytman [Sat, 8 Mar 2014 12:24:29 +0000 (16:24 +0400)]
Change option -d to accept a list of headers

Change option -d to accept a comma-separated list of headers: -d h1,h2,h3,...

10 years agoNext version will be 2.4.0
Oleg Broytman [Sat, 8 Mar 2014 12:22:03 +0000 (16:22 +0400)]
Next version will be 2.4.0

10 years agoReorganize release plans
Oleg Broytman [Fri, 7 Mar 2014 06:47:17 +0000 (10:47 +0400)]
Reorganize release plans

10 years agoUpdate TODO
Oleg Broytman [Fri, 7 Mar 2014 05:29:06 +0000 (09:29 +0400)]
Update TODO

Option -s to save headers/bodies/messages.
Option -B to skip content-transfer-decoding.
Option -I to completely remove subparts.
Add an option to convert dates to the current locate and timezone.

10 years agoTODO: remove option --remove-params
Oleg Broytman [Wed, 5 Mar 2014 15:28:59 +0000 (19:28 +0400)]
TODO: remove option --remove-params

10 years agoAdd ChangeLog
Oleg Broytman [Wed, 5 Mar 2014 12:47:39 +0000 (16:47 +0400)]
Add ChangeLog

10 years agoMinor corrections
Oleg Broytman [Wed, 5 Mar 2014 12:44:56 +0000 (16:44 +0400)]
Minor corrections

10 years agoTODO: add release plans
Oleg Broytman [Wed, 5 Mar 2014 12:41:26 +0000 (16:41 +0400)]
TODO: add release plans

10 years agoTODO: change options -r and -R to accept lists
Oleg Broytman [Wed, 5 Mar 2014 12:38:40 +0000 (16:38 +0400)]
TODO: change options -r and -R to accept lists

10 years agoRemove old TODO entries about --all-headers/params
Oleg Broytman [Wed, 5 Mar 2014 12:36:15 +0000 (16:36 +0400)]
Remove old TODO entries about --all-headers/params

10 years agoTODO: never touch multipart/encrypted and multipart/signed
Oleg Broytman [Wed, 5 Mar 2014 12:34:53 +0000 (16:34 +0400)]
TODO: never touch multipart/encrypted and multipart/signed

10 years agoUpdate TODO
Oleg Broytman [Sun, 2 Mar 2014 19:38:08 +0000 (23:38 +0400)]
Update TODO

10 years agoAdd ChangeLog
Oleg Broytman [Sun, 2 Mar 2014 19:34:44 +0000 (23:34 +0400)]
Add ChangeLog

10 years agoAdd a few comments
Oleg Broytman [Sun, 2 Mar 2014 19:33:50 +0000 (23:33 +0400)]
Add a few comments

10 years agoIgnore *.py[co] everywhere (for tests)
Oleg Broytman [Sun, 2 Mar 2014 19:32:36 +0000 (23:32 +0400)]
Ignore *.py[co] everywhere (for tests)

10 years agoVersion 2.3.8 v2.3.8
Oleg Broytman [Wed, 26 Feb 2014 16:11:32 +0000 (20:11 +0400)]
Version 2.3.8

Add option --remove-params=header to remove all parameters from the header.

10 years agoUpdate usage help
Oleg Broytman [Sun, 23 Feb 2014 20:04:37 +0000 (00:04 +0400)]
Update usage help

10 years agoUpdate doc
Oleg Broytman [Sun, 23 Feb 2014 19:58:40 +0000 (23:58 +0400)]
Update doc

10 years agoReformat paragraphs
Oleg Broytman [Sun, 23 Feb 2014 19:54:05 +0000 (23:54 +0400)]
Reformat paragraphs

10 years agoRemove headers and parameters before decoding
Oleg Broytman [Sun, 23 Feb 2014 19:50:42 +0000 (23:50 +0400)]
Remove headers and parameters before decoding

10 years agoVersion 2.3.7 v2.3.7
Oleg Broytman [Sun, 23 Feb 2014 16:32:23 +0000 (20:32 +0400)]
Version 2.3.7

10 years agoAdd option -R to remove header's parameters
Oleg Broytman [Sun, 23 Feb 2014 16:25:16 +0000 (20:25 +0400)]
Add option -R to remove header's parameters

10 years agoAdd option -r to remove headers
Oleg Broytman [Sun, 23 Feb 2014 16:13:49 +0000 (20:13 +0400)]
Add option -r to remove headers

10 years agoUse list/tuple directly instead of using types module
Oleg Broytman [Fri, 21 Feb 2014 19:48:18 +0000 (23:48 +0400)]
Use list/tuple directly instead of using types module

10 years agoAdd m_lib 2.0+ as a requirement
Oleg Broytman [Wed, 19 Feb 2014 19:13:02 +0000 (23:13 +0400)]
Add m_lib 2.0+ as a requirement

10 years agoVersion 2.3.6 v2.3.6
Oleg Broytman [Wed, 19 Feb 2014 18:57:35 +0000 (22:57 +0400)]
Version 2.3.6

10 years agoAdd "Mail-Followup-To" header to the list of headers to decode by default
Oleg Broytman [Wed, 19 Feb 2014 18:54:17 +0000 (22:54 +0400)]
Add "Mail-Followup-To" header to the list of headers to decode by default

10 years agoAdd "Reply-To" header to the list of headers to decode by default
Oleg Broytman [Wed, 19 Feb 2014 18:51:01 +0000 (22:51 +0400)]
Add "Reply-To" header to the list of headers to decode by default

10 years agoAdd "Cc" header to the list of headers to decode by default
Oleg Broytman [Wed, 19 Feb 2014 16:29:19 +0000 (20:29 +0400)]
Add "Cc" header to the list of headers to decode by default

10 years agoVersion 2.3.5 v2.3.5
Oleg Broytman [Wed, 19 Feb 2014 13:05:35 +0000 (17:05 +0400)]
Version 2.3.5

10 years agoAdd a test for option -i
Oleg Broytman [Wed, 19 Feb 2014 13:04:31 +0000 (17:04 +0400)]
Add a test for option -i

10 years agoAdd a test for option -b
Oleg Broytman [Wed, 19 Feb 2014 13:01:14 +0000 (17:01 +0400)]
Add a test for option -b

10 years agoSplit main loop into test_file
Oleg Broytman [Wed, 19 Feb 2014 12:46:41 +0000 (16:46 +0400)]
Split main loop into test_file

10 years agoRevert "Fix a bug: compare real value from the tuple"
Oleg Broytman [Wed, 19 Feb 2014 12:40:56 +0000 (16:40 +0400)]
Revert "Fix a bug: compare real value from the tuple"

This reverts commit 4e678ac9522dd6372854758bcb0c3f45d37b1df3.

10 years agoRename test target from 'run' to 'all'
Oleg Broytman [Tue, 18 Feb 2014 21:58:11 +0000 (01:58 +0400)]
Rename test target from 'run' to 'all'

10 years agoAdd tests for parameters decoding
Oleg Broytman [Tue, 18 Feb 2014 21:47:31 +0000 (01:47 +0400)]
Add tests for parameters decoding

10 years agoUpdate docs
Oleg Broytman [Tue, 18 Feb 2014 19:42:29 +0000 (23:42 +0400)]
Update docs

10 years agoDecode "To" header by default
Oleg Broytman [Tue, 18 Feb 2014 18:44:05 +0000 (22:44 +0400)]
Decode "To" header by default

10 years agoTest header decoding
Oleg Broytman [Tue, 18 Feb 2014 18:35:18 +0000 (22:35 +0400)]
Test header decoding

10 years agoChange type guessing
Oleg Broytman [Tue, 18 Feb 2014 18:28:50 +0000 (22:28 +0400)]
Change type guessing

The message or part is an RFC-822 message if it has at least one header,
not necessary Content-Type.

10 years agoFix a bug: compare real value from the tuple
Oleg Broytman [Fri, 14 Feb 2014 18:35:27 +0000 (22:35 +0400)]
Fix a bug: compare real value from the tuple

10 years agoDocument that Content-Type:name is also decoded
Oleg Broytman [Fri, 14 Feb 2014 18:04:40 +0000 (22:04 +0400)]
Document that Content-Type:name is also decoded

Document that Content-Type:name parameter is also in the list of
parameters to be decoded by default.

10 years agoReport test progress and success
Oleg Broytman [Wed, 12 Feb 2014 18:37:59 +0000 (22:37 +0400)]
Report test progress and success

10 years agoRemove tmp after successful test run
Oleg Broytman [Wed, 12 Feb 2014 18:36:02 +0000 (22:36 +0400)]
Remove tmp after successful test run

Directory tmp must be empty at that time.

10 years agoDo not test if the message is multipart
Oleg Broytman [Wed, 12 Feb 2014 18:11:00 +0000 (22:11 +0400)]
Do not test if the message is multipart

Skip the second test.

10 years agoSplit decode_message into decode_multipart
Oleg Broytman [Wed, 12 Feb 2014 00:17:15 +0000 (04:17 +0400)]
Split decode_message into decode_multipart

10 years agoVersion 2.3.4 v2.3.4
Oleg Broytman [Tue, 11 Feb 2014 18:45:44 +0000 (22:45 +0400)]
Version 2.3.4

10 years agoRefactor else+if to elif
Oleg Broytman [Mon, 10 Feb 2014 20:22:15 +0000 (00:22 +0400)]
Refactor else+if to elif

10 years agoRefactor decode_file
Oleg Broytman [Mon, 10 Feb 2014 20:18:11 +0000 (00:18 +0400)]
Refactor decode_file

Optimize recursive decoding; decode message/rfc822 subparts.

10 years agoDoc update
Oleg Broytman [Wed, 5 Feb 2014 16:42:07 +0000 (20:42 +0400)]
Doc update

Only non-multipart subparts are tested against -beit options.

10 years agoRefactoring: move subpart decoding inside decode_file
Oleg Broytman [Wed, 5 Feb 2014 16:34:33 +0000 (20:34 +0400)]
Refactoring: move subpart decoding inside decode_file