From d0300ffa1ef1f9afee0e4d53c725f54773d89c13 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 13 Mar 2014 04:05:01 +0400 Subject: [PATCH] Use set_header to replace header's value in-place --- mimedecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5