Change option -d to accept a comma-separated list of headers: -d h1,h2,h3,...
WHAT'S NEW in version 2.4.0 (2014-03-??)
- Change option -d to accept a list of headers: -d h1,h2,h3,...
+ Change option -d to accept a comma-separated list of headers:
+-d h1,h2,h3,...
Add ChangeLog.
-Publish docs in html format.
-
-
-Release 2.3.9.
-
-
-Change option -d to accept a list of headers: -d h1,h2,h3,...
-
-
Change option -d to decode all headers and accept a list of exceptions:
-d *,-h1,-h2,...
-p *,-h1,-h2,-h3:*,-p1,-p2,-p3
+Publish docs in html format.
+
+
Release 2.4.0.
<option>-H|--host=hostname</option>
</arg>
<arg choice="opt">
- <option>-d header</option>
+ <option>-d header1[,header2,header3...]</option>
</arg>
<arg choice="opt">
<option>-p header:param</option>
</varlistentry>
<varlistentry>
- <term>-d header</term>
+ <term>-d header1[,header2,header3...]</term>
<listitem>
<para>
- Add the header to a list of headers to decode; initially the list
- contains headers "From", "To", "Cc", "Reply-To", "Mail-Followup-To"
- and "Subject".
+ Add the header(s) to a list of headers to decode; initially the
+ list contains headers "From", "To", "Cc", "Reply-To",
+ "Mail-Followup-To" and "Subject".
</para>
</listitem>
</varlistentry>
def usage(code=0, errormsg=''):
version(0)
sys.stdout.write("""\
-Usage: %s [-h|--help] [-V|--version] [-cCDP] [-H|--host=hostname] [-f charset] [-d header] [-p header:param] [-r header] [-R header:param] [--remove-params=header] [-beit mask] [-o output_file] [input_file [output_file]]
+Usage: %s [-h|--help] [-V|--version] [-cCDP] [-H|--host=hostname] [-f charset] [-d header1[,header2,header3...]] [-p header:param] [-r header] [-R header:param] [--remove-params=header] [-beit mask] [-o output_file] [input_file [output_file]]
""" % me)
if errormsg:
sys.stderr.write(errormsg + '\n')
for header, param in gopts.remove_header_params:
msg.del_param(param, header)
- for header in gopts.decode_headers:
- decode_header(msg, header)
+ for header_list in gopts.decode_headers:
+ for header in header_list.split(','):
+ decode_header(msg, header)
for header, param in gopts.decode_header_params:
decode_header_param(msg, header, param)
--- /dev/null
+From test Sat Feb 1 00:00:00 2014
+Return-Path: <bbb@zzz.org>
+Delivered-To: bbb@zzz.org
+Received: by mail.zzz.org (Postfix, from userid 889)
+ id 27CEAD38CC; Fri, 4 May 2001 14:05:44 -0400 (EDT)
+Message-ID: <15090.61304.110929.45684@aaa.zzz.org>
+From: John X. Dôe <bbb@ddd.com>
+To: Jãne Y. Doe <bbb@zzz.org>
+Cc: =?utf-8?B?xIZjxI0=?= <ccc@zzz.org>
+Subject: This is a tést message
+Date: Fri, 4 May 2001 14:05:44 -0400
+
+
+Hi,
+
+Do you like this message?
+
+-Me
test_file "$n" "$n"
done
+test_file msg_03.txt msg_03-1.txt -D -d From,To,Subject
test_file msg_15.txt msg_15-1.txt -b text/html
test_file msg_15.txt msg_15-2.txt -i text/html
test_file msg_22.txt msg_22-1.txt -r content-id