diff options
| author | Barry Warsaw | 2015-06-15 11:44:48 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2015-06-15 11:44:48 +0000 |
| commit | e9799b26ffcdafd04f58d576d597860d073457e0 (patch) | |
| tree | ed79b94d4722df09157301a6189c886f81563efd /src/mailman/archiving/prototype.py | |
| parent | 955abee5c16a4a35f270c54cb8d658c4445b4b18 (diff) | |
| parent | dc1db8a094570c3d74f31e78b4447ae807247c8b (diff) | |
| download | mailman-e9799b26ffcdafd04f58d576d597860d073457e0.tar.gz mailman-e9799b26ffcdafd04f58d576d597860d073457e0.tar.zst mailman-e9799b26ffcdafd04f58d576d597860d073457e0.zip | |
Diffstat (limited to 'src/mailman/archiving/prototype.py')
| -rw-r--r-- | src/mailman/archiving/prototype.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mailman/archiving/prototype.py b/src/mailman/archiving/prototype.py index b5df11f78..73c296b5d 100644 --- a/src/mailman/archiving/prototype.py +++ b/src/mailman/archiving/prototype.py @@ -58,10 +58,13 @@ class Prototype: @staticmethod def permalink(mlist, msg): """See `IArchiver`.""" - # It is the LMTP server's responsibility to ensure that the message - # has a X-Message-ID-Hash header. If it doesn't then there's no + # It is the LMTP server's responsibility to ensure that the message has + # a Message-ID-Hash header. For backward compatibility, fall back to + # X-Message-ID-Hash. If the message has neither, then there's no # permalink. - message_id_hash = msg.get('x-message-id-hash') + message_id_hash = msg.get('message-id-hash') + if message_id_hash is None: + message_id_hash = msg.get('x-message-id-hash') if message_id_hash is None: return None if isinstance(message_id_hash, bytes): |
