diff options
| author | Barry Warsaw | 2008-07-02 22:29:20 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-07-02 22:29:20 -0400 |
| commit | ae08b9bd032410014124c0885e2ed4b7b9cb4591 (patch) | |
| tree | a11750fd86ee00175a92ce2e877dfa56213851bf /mailman/pipeline | |
| parent | ee349897c99a75da4da4698c64bee8cd0d743d97 (diff) | |
| download | mailman-ae08b9bd032410014124c0885e2ed4b7b9cb4591.tar.gz mailman-ae08b9bd032410014124c0885e2ed4b7b9cb4591.tar.zst mailman-ae08b9bd032410014124c0885e2ed4b7b9cb4591.zip | |
Implement a prototypical archiver that supports Archived-At permalink header,
using the current concept of the hash. This can change, but at least now I
have the interfaces and infrastructure to support this header. Of course,
Pipermail doesn't support a permalink, so that archiver no-ops.
Add an adapter to provide the interface that Pipermail requires over and above
the IMailingList interface. Add an is_enabled flag to IArchiver.
Diffstat (limited to 'mailman/pipeline')
| -rw-r--r-- | mailman/pipeline/cook_headers.py | 2 | ||||
| -rw-r--r-- | mailman/pipeline/docs/cook-headers.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/mailman/pipeline/cook_headers.py b/mailman/pipeline/cook_headers.py index 4cda42c81..ad4728be8 100644 --- a/mailman/pipeline/cook_headers.py +++ b/mailman/pipeline/cook_headers.py @@ -215,6 +215,8 @@ def process(mlist, msg, msgdata): # Add RFC 2369 and 5064 archiving headers, if archiving is enabled. if mlist.archive: for archiver in get_plugins('mailman.archiver'): + if not archiver.is_enabled: + continue headers['List-Archive'] = '<%s>' % archiver.list_url(mlist) permalink = archiver.permalink(mlist, msg) if permalink is not None: diff --git a/mailman/pipeline/docs/cook-headers.txt b/mailman/pipeline/docs/cook-headers.txt index a85ba9e63..d764bd796 100644 --- a/mailman/pipeline/docs/cook-headers.txt +++ b/mailman/pipeline/docs/cook-headers.txt @@ -186,6 +186,7 @@ But normally, a list will include these headers. >>> mlist.preferred_language = u'en' >>> msg = message_from_string("""\ ... From: aperson@example.com + ... Message-ID: <12345> ... ... """) >>> process(mlist, msg, {}) |
