diff options
| author | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-03 05:13:41 -0500 |
| commit | e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110 (patch) | |
| tree | e456327300678100b6cc6dfa625c7bc31a9f34a4 /mailman/archiving/mhonarc.py | |
| parent | c0522afd1754c7a18c40c9ebaa6c2ef406929170 (diff) | |
| download | mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.gz mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.tar.zst mailman-e5a96f14fb0fe8196e7b3ea0306c9f57f45c3110.zip | |
Diffstat (limited to 'mailman/archiving/mhonarc.py')
| -rw-r--r-- | mailman/archiving/mhonarc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mailman/archiving/mhonarc.py b/mailman/archiving/mhonarc.py index 3cc83170c..cc2e0d7e9 100644 --- a/mailman/archiving/mhonarc.py +++ b/mailman/archiving/mhonarc.py @@ -47,7 +47,6 @@ class MHonArc: implements(IArchiver) name = 'mhonarc' - is_enabled = False @staticmethod def list_url(mlist): @@ -66,7 +65,9 @@ class MHonArc: # XXX What about private MHonArc archives? message_id = msg.get('message-id') # It is not the archiver's job to ensure the message has a Message-ID. - assert message_id is not None, 'No Message-ID found' + # If no Message-ID is available, there is no permalink. + if message_id is None: + return None # 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] |
