diff options
Diffstat (limited to 'src/mailman/archiving/mhonarc.py')
| -rw-r--r-- | src/mailman/archiving/mhonarc.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mailman/archiving/mhonarc.py b/src/mailman/archiving/mhonarc.py index 8d19c6f64..1c351748e 100644 --- a/src/mailman/archiving/mhonarc.py +++ b/src/mailman/archiving/mhonarc.py @@ -63,10 +63,14 @@ class MHonArc: def permalink(self, mlist, msg): """See `IArchiver`.""" # XXX What about private MHonArc archives? - # 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): |
