summaryrefslogtreecommitdiff
path: root/mailman/archiving/mailarchive.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-07-06 10:27:05 -0400
committerBarry Warsaw2008-07-06 10:27:05 -0400
commit3929c688da2b275a1bb965152cca8a7352557ffc (patch)
treeef32ee1e5ac61570f3059ae838b30049b7055936 /mailman/archiving/mailarchive.py
parent08400a46afb740a0e49058707969462fa7e7dddf (diff)
downloadmailman-3929c688da2b275a1bb965152cca8a7352557ffc.tar.gz
mailman-3929c688da2b275a1bb965152cca8a7352557ffc.tar.zst
mailman-3929c688da2b275a1bb965152cca8a7352557ffc.zip
Use IMailingList.posting_address (a.k.a. List-Post header) in the
Mail-Archive.com hash calculation, not the post-id sequence number. test_documentation now starts and stops the smtp listener, simplifing many tests.
Diffstat (limited to 'mailman/archiving/mailarchive.py')
-rw-r--r--mailman/archiving/mailarchive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailman/archiving/mailarchive.py b/mailman/archiving/mailarchive.py
index e1405acee..2a83b9a8d 100644
--- a/mailman/archiving/mailarchive.py
+++ b/mailman/archiving/mailarchive.py
@@ -68,7 +68,7 @@ class MailArchive:
end = (-1 if message_id.endswith('>') else None)
message_id = message_id[start:end]
sha = hashlib.sha1(message_id)
- sha.update(str(mlist.post_id))
+ sha.update(str(mlist.posting_address))
message_id_hash = urlsafe_b64encode(sha.digest())
del msg['x-message-id-hash']
msg['X-Message-ID-Hash'] = message_id_hash