aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/utils.py
diff options
context:
space:
mode:
authorJ08nY2017-06-26 19:14:57 +0200
committerJ08nY2017-06-26 19:14:57 +0200
commit13359343ef34c17473a0f2d9a8e7a67f748eb3c6 (patch)
tree6a65346838ccc41e60d312b42618f5befc7e223b /src/mailman_pgp/pgp/utils.py
parent4cfe4ddec61e78ff4fe00cc9ce23ece5da357851 (diff)
downloadmailman-pgp-13359343ef34c17473a0f2d9a8e7a67f748eb3c6.tar.gz
mailman-pgp-13359343ef34c17473a0f2d9a8e7a67f748eb3c6.tar.zst
mailman-pgp-13359343ef34c17473a0f2d9a8e7a67f748eb3c6.zip
Diffstat (limited to 'src/mailman_pgp/pgp/utils.py')
-rw-r--r--src/mailman_pgp/pgp/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/utils.py b/src/mailman_pgp/pgp/utils.py
index 1701c63..cc0bda0 100644
--- a/src/mailman_pgp/pgp/utils.py
+++ b/src/mailman_pgp/pgp/utils.py
@@ -20,3 +20,5 @@ def copy_headers(from_msg, to_msg):
for key, value in from_msg.items():
if key not in to_msg:
to_msg[key] = value
+ if to_msg.get_unixfrom() is None:
+ to_msg.set_unixfrom(from_msg.get_unixfrom())