summaryrefslogtreecommitdiff
path: root/mailman/archiving/prototype.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/archiving/prototype.py')
-rw-r--r--mailman/archiving/prototype.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mailman/archiving/prototype.py b/mailman/archiving/prototype.py
index e17a6f177..8fbbe47c4 100644
--- a/mailman/archiving/prototype.py
+++ b/mailman/archiving/prototype.py
@@ -44,7 +44,6 @@ class Prototype:
implements(IArchiver)
name = 'prototype'
- is_enabled = False
@staticmethod
def list_url(mlist):
@@ -56,7 +55,9 @@ class Prototype:
"""See `IArchiver`."""
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 this header is missing, 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]