summaryrefslogtreecommitdiff
path: root/mailman/archiving/prototype.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-07-09 22:35:44 -0400
committerBarry Warsaw2008-07-09 22:35:44 -0400
commit82de03b4699cb9e841f4196ff7c92e043056d3e3 (patch)
tree06ffed62dc4ffb55ef1036f02268dee5a0aa6847 /mailman/archiving/prototype.py
parent3929c688da2b275a1bb965152cca8a7352557ffc (diff)
downloadmailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.tar.gz
mailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.tar.zst
mailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.zip
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']