]> git.phdru.name Git - mimedecode.git/commitdiff
Use set_header to replace header's value in-place
authorOleg Broytman <phd@phdru.name>
Thu, 13 Mar 2014 00:05:01 +0000 (04:05 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 13 Mar 2014 00:05:01 +0000 (04:05 +0400)
mimedecode.py

index fdea039d04f0fc6ee9716137d86dc3763f72e0d4..01f650563060eb085b6811295a8ee8ce267c2744 100755 (executable)
@@ -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: