aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-07-18 19:57:55 +0200
committerJ08nY2017-07-18 20:50:25 +0200
commitd8c34eb6b013eb460262981f14c6cf154376edb8 (patch)
treefb7f4ee4ef7e2802a2b48c040e1405d2045ef46a
parentdfa322909f202332e17624fdc0f23aa00ddbb2f0 (diff)
downloadmailman-pgp-d8c34eb6b013eb460262981f14c6cf154376edb8.tar.gz
mailman-pgp-d8c34eb6b013eb460262981f14c6cf154376edb8.tar.zst
mailman-pgp-d8c34eb6b013eb460262981f14c6cf154376edb8.zip
-rw-r--r--src/mailman_pgp/utils/email.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman_pgp/utils/email.py b/src/mailman_pgp/utils/email.py
index d1efc40..a936458 100644
--- a/src/mailman_pgp/utils/email.py
+++ b/src/mailman_pgp/utils/email.py
@@ -50,7 +50,8 @@ def overwrite_message(from_msg, to_msg):
:param to_msg: The destination `Message`.
:type to_msg: email.message.Message
"""
- del to_msg[:]
+ for key in to_msg.keys():
+ del to_msg[key]
for key, value in from_msg.items():
to_msg[key] = value
to_msg.set_unixfrom(from_msg.get_unixfrom())