]>
git.phdru.name Git - mimedecode.git/log
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,...
Oleg Broytman [Sat, 8 Mar 2014 16:07:51 +0000 (20:07 +0400)]
Refactor common code into _decode_headers_params
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
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
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,..
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,...
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,...
Oleg Broytman [Sat, 8 Mar 2014 12:22:03 +0000 (16:22 +0400)]
Next version will be 2.4.0
Oleg Broytman [Fri, 7 Mar 2014 06:47:17 +0000 (10:47 +0400)]
Reorganize release plans
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.
Oleg Broytman [Wed, 5 Mar 2014 15:28:59 +0000 (19:28 +0400)]
TODO: remove option --remove-params
Oleg Broytman [Wed, 5 Mar 2014 12:47:39 +0000 (16:47 +0400)]
Add ChangeLog
Oleg Broytman [Wed, 5 Mar 2014 12:44:56 +0000 (16:44 +0400)]
Minor corrections
Oleg Broytman [Wed, 5 Mar 2014 12:41:26 +0000 (16:41 +0400)]
TODO: add release plans
Oleg Broytman [Wed, 5 Mar 2014 12:38:40 +0000 (16:38 +0400)]
TODO: change options -r and -R to accept lists
Oleg Broytman [Wed, 5 Mar 2014 12:36:15 +0000 (16:36 +0400)]
Remove old TODO entries about --all-headers/params
Oleg Broytman [Wed, 5 Mar 2014 12:34:53 +0000 (16:34 +0400)]
TODO: never touch multipart/encrypted and multipart/signed
Oleg Broytman [Sun, 2 Mar 2014 19:38:08 +0000 (23:38 +0400)]
Update TODO
Oleg Broytman [Sun, 2 Mar 2014 19:34:44 +0000 (23:34 +0400)]
Add ChangeLog
Oleg Broytman [Sun, 2 Mar 2014 19:33:50 +0000 (23:33 +0400)]
Add a few comments
Oleg Broytman [Sun, 2 Mar 2014 19:32:36 +0000 (23:32 +0400)]
Ignore *.py[co] everywhere (for tests)
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.
Oleg Broytman [Sun, 23 Feb 2014 20:04:37 +0000 (00:04 +0400)]
Update usage help
Oleg Broytman [Sun, 23 Feb 2014 19:58:40 +0000 (23:58 +0400)]
Update doc
Oleg Broytman [Sun, 23 Feb 2014 19:54:05 +0000 (23:54 +0400)]
Reformat paragraphs
Oleg Broytman [Sun, 23 Feb 2014 19:50:42 +0000 (23:50 +0400)]
Remove headers and parameters before decoding
Oleg Broytman [Sun, 23 Feb 2014 16:32:23 +0000 (20:32 +0400)]
Version 2.3.7
Oleg Broytman [Sun, 23 Feb 2014 16:25:16 +0000 (20:25 +0400)]
Add option -R to remove header's parameters
Oleg Broytman [Sun, 23 Feb 2014 16:13:49 +0000 (20:13 +0400)]
Add option -r to remove headers
Oleg Broytman [Fri, 21 Feb 2014 19:48:18 +0000 (23:48 +0400)]
Use list/tuple directly instead of using types module
Oleg Broytman [Wed, 19 Feb 2014 19:13:02 +0000 (23:13 +0400)]
Add m_lib 2.0+ as a requirement
Oleg Broytman [Wed, 19 Feb 2014 18:57:35 +0000 (22:57 +0400)]
Version 2.3.6
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
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
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
Oleg Broytman [Wed, 19 Feb 2014 13:05:35 +0000 (17:05 +0400)]
Version 2.3.5
Oleg Broytman [Wed, 19 Feb 2014 13:04:31 +0000 (17:04 +0400)]
Add a test for option -i
Oleg Broytman [Wed, 19 Feb 2014 13:01:14 +0000 (17:01 +0400)]
Add a test for option -b
Oleg Broytman [Wed, 19 Feb 2014 12:46:41 +0000 (16:46 +0400)]
Split main loop into test_file
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 .
Oleg Broytman [Tue, 18 Feb 2014 21:58:11 +0000 (01:58 +0400)]
Rename test target from 'run' to 'all'
Oleg Broytman [Tue, 18 Feb 2014 21:47:31 +0000 (01:47 +0400)]
Add tests for parameters decoding
Oleg Broytman [Tue, 18 Feb 2014 19:42:29 +0000 (23:42 +0400)]
Update docs
Oleg Broytman [Tue, 18 Feb 2014 18:44:05 +0000 (22:44 +0400)]
Decode "To" header by default
Oleg Broytman [Tue, 18 Feb 2014 18:35:18 +0000 (22:35 +0400)]
Test header decoding
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.
Oleg Broytman [Fri, 14 Feb 2014 18:35:27 +0000 (22:35 +0400)]
Fix a bug: compare real value from the tuple
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.
Oleg Broytman [Wed, 12 Feb 2014 18:37:59 +0000 (22:37 +0400)]
Report test progress and success
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.
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.
Oleg Broytman [Wed, 12 Feb 2014 00:17:15 +0000 (04:17 +0400)]
Split decode_message into decode_multipart
Oleg Broytman [Tue, 11 Feb 2014 18:45:44 +0000 (22:45 +0400)]
Version 2.3.4
Oleg Broytman [Mon, 10 Feb 2014 20:22:15 +0000 (00:22 +0400)]
Refactor else+if to elif
Oleg Broytman [Mon, 10 Feb 2014 20:18:11 +0000 (00:18 +0400)]
Refactor decode_file
Optimize recursive decoding; decode message/rfc822 subparts.
Oleg Broytman [Wed, 5 Feb 2014 16:42:07 +0000 (20:42 +0400)]
Doc update
Only non-multipart subparts are tested against -beit options.
Oleg Broytman [Wed, 5 Feb 2014 16:34:33 +0000 (20:34 +0400)]
Refactoring: move subpart decoding inside decode_file
Oleg Broytman [Wed, 5 Feb 2014 15:48:20 +0000 (19:48 +0400)]
Minor refactoring: move 'boundary' inside 'if'
Oleg Broytman [Wed, 5 Feb 2014 15:42:28 +0000 (19:42 +0400)]
Close infile and outfile even after an exception
Oleg Broytman [Wed, 5 Feb 2014 15:40:26 +0000 (19:40 +0400)]
Make 'output' an alias for outfile.write
Oleg Broytman [Sun, 2 Feb 2014 13:15:09 +0000 (17:15 +0400)]
Version 2.3.3
Oleg Broytman [Sun, 2 Feb 2014 13:07:35 +0000 (17:07 +0400)]
Fix a bug: option -o without any parameters
Oleg Broytman [Sun, 2 Feb 2014 13:02:28 +0000 (17:02 +0400)]
Test stdin only
When testing for redirects it's enough to test only stdin.
But if stdout is also at console -- it's not an error; print usage help
and exit.
Oleg Broytman [Sat, 1 Feb 2014 19:59:18 +0000 (23:59 +0400)]
Update documentation
Oleg Broytman [Sat, 1 Feb 2014 19:28:35 +0000 (23:28 +0400)]
Include tests
Oleg Broytman [Sat, 1 Feb 2014 19:10:46 +0000 (23:10 +0400)]
Done: tests
Oleg Broytman [Sat, 1 Feb 2014 19:02:35 +0000 (23:02 +0400)]
Version 2.3.2
Oleg Broytman [Sat, 1 Feb 2014 18:47:48 +0000 (22:47 +0400)]
Add tests
Oleg Broytman [Sat, 1 Feb 2014 17:36:19 +0000 (21:36 +0400)]
Fix a bug - do not generate 'From ' headers in subparts
Oleg Broytman [Sat, 1 Feb 2014 17:27:19 +0000 (21:27 +0400)]
Rename recode2 => recode_if_needed
Oleg Broytman [Sat, 1 Feb 2014 17:07:17 +0000 (21:07 +0400)]
Add option --host
Oleg Broytman [Sat, 1 Feb 2014 17:06:23 +0000 (21:06 +0400)]
Regenerate docs before making a distr
Oleg Broytman [Fri, 31 Jan 2014 20:15:50 +0000 (00:15 +0400)]
TODO: add tests
Oleg Broytman [Fri, 31 Jan 2014 19:57:47 +0000 (23:57 +0400)]
Version 2.3.1: update documentation
Oleg Broytman [Fri, 31 Jan 2014 19:56:48 +0000 (23:56 +0400)]
Make minor clarification
Oleg Broytman [Fri, 31 Jan 2014 19:56:00 +0000 (23:56 +0400)]
List environment variables using variablelist
Oleg Broytman [Fri, 31 Jan 2014 19:54:57 +0000 (23:54 +0400)]
Make text more descriptive
Avoid deep Python references.
Oleg Broytman [Fri, 31 Jan 2014 19:35:28 +0000 (23:35 +0400)]
Dump html to text with no numbering and without references
Oleg Broytman [Fri, 31 Jan 2014 19:34:54 +0000 (23:34 +0400)]
Change indent
Oleg Broytman [Fri, 31 Jan 2014 19:34:22 +0000 (23:34 +0400)]
Split author's name/email
Oleg Broytman [Fri, 31 Jan 2014 19:33:42 +0000 (23:33 +0400)]
Wrap URLs in ulink's
Oleg Broytman [Fri, 31 Jan 2014 19:32:50 +0000 (23:32 +0400)]
Add refentryinfo
Oleg Broytman [Fri, 31 Jan 2014 19:32:16 +0000 (23:32 +0400)]
Update to DocBook 4.5; use local dtd
Oleg Broytman [Fri, 31 Jan 2014 15:31:55 +0000 (19:31 +0400)]
Fix: the 4 list options are no longer the last
Oleg Broytman [Fri, 31 Jan 2014 15:29:32 +0000 (19:29 +0400)]
Change the language to "sh"
Reminder: neither "sh" nor "shell" are supported by DocBook XSLT.
Oleg Broytman [Fri, 31 Jan 2014 11:21:35 +0000 (15:21 +0400)]
ANNOUNCE: forbid filtering from console to console
Oleg Broytman [Thu, 30 Jan 2014 19:26:30 +0000 (23:26 +0400)]
Version 2.3.0: add option -o and output_file argument
Oleg Broytman [Thu, 30 Jan 2014 19:21:39 +0000 (23:21 +0400)]
Sort rules by alphabetic order of the destinations
Oleg Broytman [Thu, 30 Jan 2014 19:07:40 +0000 (23:07 +0400)]
Forbid filtering from console to console - show usage instead
Oleg Broytman [Thu, 30 Jan 2014 19:02:34 +0000 (23:02 +0400)]
Print more descriptive error messages
Oleg Broytman [Thu, 30 Jan 2014 18:30:38 +0000 (22:30 +0400)]
Add option -o output_file
Useful to set the output file in case of redirected stdin:
mimedecode.py -o output_file < input_file
cat input_file | mimedecode.py -o output_file
Oleg Broytman [Thu, 30 Jan 2014 18:15:06 +0000 (22:15 +0400)]
Add an optional output file argument
Oleg Broytman [Thu, 30 Jan 2014 17:59:15 +0000 (21:59 +0400)]
Create an alias gopts for GlobalOptions
Oleg Broytman [Fri, 24 Jan 2014 18:27:01 +0000 (22:27 +0400)]
Minor formatting enhancement
Oleg Broytman [Thu, 23 Jan 2014 21:13:46 +0000 (01:13 +0400)]
Use \n instead of os.linesep
Oleg Broytman [Thu, 23 Jan 2014 21:02:14 +0000 (01:02 +0400)]
Minor refactoring
Oleg Broytman [Thu, 23 Jan 2014 20:56:43 +0000 (00:56 +0400)]
Make indent 4 spaces
Oleg Broytman [Thu, 23 Jan 2014 20:52:57 +0000 (00:52 +0400)]
Minor refactoring
Oleg Broytman [Thu, 23 Jan 2014 19:15:06 +0000 (23:15 +0400)]
Version 2.2.2: upgrade docbook-xsl
Oleg Broytman [Wed, 15 Jan 2014 15:47:30 +0000 (19:47 +0400)]
Installation using pip: done