From: Oleg Broytman Date: Wed, 19 Feb 2014 18:54:17 +0000 (+0400) Subject: Add "Mail-Followup-To" header to the list of headers to decode by default X-Git-Tag: v2.3.6~1 X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=commitdiff_plain;h=eefabcd05d2257ff8de79d5d291f721e06a3c827 Add "Mail-Followup-To" header to the list of headers to decode by default --- diff --git a/mimedecode.docbook b/mimedecode.docbook index 064729f..8fda9a2 100644 --- a/mimedecode.docbook +++ b/mimedecode.docbook @@ -192,7 +192,8 @@ command-line options. Add the header to a list of headers to decode; initially the list - contains headers "From", "To", "Cc", "Reply-To" and "Subject". + contains headers "From", "To", "Cc", "Reply-To", "Mail-Followup-To" + and "Subject". @@ -337,11 +338,11 @@ the program always uses the default decoding. The program may produce incorrect MIME message. The purpose of the program is to decode whatever it is possible to decode, not to produce absolutely correct MIME output. The incorrect parts are obvious - decoded - From/To/Cc/Reply-To/Subject headers and filenames. Other than that output is - correct MIME message. The program does not try to guess whether the headers - are correct. For example, if a message header states that charset is - iso8859-5, but the body is actually in utf-8 the program will recode the - message with the wrong charset. + From/To/Cc/Reply-To/Mail-Followup-To/Subject headers and filenames. Other + than that output is correct MIME message. The program does not try to guess + whether the headers are correct. For example, if a message header states + that charset is iso8859-5, but the body is actually in utf-8 the program + will recode the message with the wrong charset. diff --git a/mimedecode.py b/mimedecode.py index 90f189e..9a23b7f 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -274,7 +274,8 @@ class GlobalOptions: host_name = None # A list of headers to decode - decode_headers = ["From", "To", "Cc", "Reply-To", "Subject"] + decode_headers = ["From", "To", "Cc", "Reply-To", "Mail-Followup-To", + "Subject"] # A list of headers' parameters to decode decode_header_params = [