From: Oleg Broytman Date: Thu, 13 Mar 2014 00:05:01 +0000 (+0400) Subject: Use set_header to replace header's value in-place X-Git-Tag: v2.5.0~14 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d0300ffa1ef1f9afee0e4d53c725f54773d89c13;p=mimedecode.git Use set_header to replace header's value in-place --- diff --git a/mimedecode.py b/mimedecode.py index fdea039..01f6505 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -565,7 +565,7 @@ if __name__ == "__main__": msg = email.message_from_file(infile) for header, value in g.set_header_value: - msg[header] = value + set_header(msg, header, value) for header, param, value in g.set_header_param: if header in msg: