summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/rfc_2369.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-08-18 19:32:53 -0400
committerBarry Warsaw2012-08-18 19:32:53 -0400
commitb301eeb71249ef58ffcc8b285d51b19c8b42812b (patch)
tree56552098758969669957f6ba0a175bc2cdbea19d /src/mailman/handlers/rfc_2369.py
parentffd6b7b2ec632920cbf9d413aa20d83d8333c87f (diff)
downloadmailman-b301eeb71249ef58ffcc8b285d51b19c8b42812b.tar.gz
mailman-b301eeb71249ef58ffcc8b285d51b19c8b42812b.tar.zst
mailman-b301eeb71249ef58ffcc8b285d51b19c8b42812b.zip
Diffstat (limited to 'src/mailman/handlers/rfc_2369.py')
-rw-r--r--src/mailman/handlers/rfc_2369.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/handlers/rfc_2369.py b/src/mailman/handlers/rfc_2369.py
index 43eb30acd..ee2bdb503 100644
--- a/src/mailman/handlers/rfc_2369.py
+++ b/src/mailman/handlers/rfc_2369.py
@@ -31,6 +31,7 @@ from zope.interface import implementer
from mailman.config import config
from mailman.core.i18n import _
from mailman.handlers.cook_headers import uheader
+from mailman.interfaces.archiver import ArchivePolicy
from mailman.interfaces.handler import IHandler
@@ -82,7 +83,7 @@ def process(mlist, msg, msgdata):
else 'NO')
headers['List-Post'] = list_post
# Add RFC 2369 and 5064 archiving headers, if archiving is enabled.
- if mlist.archive:
+ if mlist.archive_policy != ArchivePolicy.never:
for archiver in config.archivers:
headers['List-Archive'] = '<{0}>'.format(
archiver.list_url(mlist))