summaryrefslogtreecommitdiff
path: root/mailman/archiving/prototype.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/archiving/prototype.py')
-rw-r--r--mailman/archiving/prototype.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mailman/archiving/prototype.py b/mailman/archiving/prototype.py
index b2efbc5e0..deeaaa624 100644
--- a/mailman/archiving/prototype.py
+++ b/mailman/archiving/prototype.py
@@ -61,6 +61,8 @@ class Prototype:
# The angle brackets are not part of the Message-ID. See RFC 2822.
if message_id.startswith('<') and message_id.endswith('>'):
message_id = message_id[1:-1]
+ else:
+ message_id = message_id.strip()
digest = hashlib.sha1(message_id).digest()
message_id_hash = b32encode(digest)
del msg['x-message-id-hash']