~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/handlers/rfc_2369.py

  • Committer: Barry Warsaw
  • Date: 2012-08-18 23:32:53 UTC
  • Revision ID: barry@list.org-20120818233253-z9i0dh8955zdqo66
 * Fix residual references to the old `IMailingList` archive variables.
   (LP: #1031393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from mailman.config import config
32
32
from mailman.core.i18n import _
33
33
from mailman.handlers.cook_headers import uheader
 
34
from mailman.interfaces.archiver import ArchivePolicy
34
35
from mailman.interfaces.handler import IHandler
35
36
 
36
37
 
82
83
                     else 'NO')
83
84
        headers['List-Post'] = list_post
84
85
        # Add RFC 2369 and 5064 archiving headers, if archiving is enabled.
85
 
        if mlist.archive:
 
86
        if mlist.archive_policy != ArchivePolicy.never:
86
87
            for archiver in config.archivers:
87
88
                headers['List-Archive'] = '<{0}>'.format(
88
89
                    archiver.list_url(mlist))