diff options
Diffstat (limited to 'mailman/archiving/mailarchive.py')
| -rw-r--r-- | mailman/archiving/mailarchive.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mailman/archiving/mailarchive.py b/mailman/archiving/mailarchive.py index 20a3ea483..334818204 100644 --- a/mailman/archiving/mailarchive.py +++ b/mailman/archiving/mailarchive.py @@ -44,7 +44,6 @@ class MailArchive: implements(IArchiver) name = 'mail-archive' - is_enabled = False @staticmethod def list_url(mlist): @@ -61,7 +60,9 @@ class MailArchive: return None 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] |
