diff options
| author | bwarsaw | 2001-10-24 06:35:36 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-24 06:35:36 +0000 |
| commit | ed7ad797576b5b021f04491ad1a064c662406104 (patch) | |
| tree | ec322573467d0e8108356fb9cf1f4b4e79ab123c | |
| parent | c38a076d14abccc55e89253980be1ee49dcb28e9 (diff) | |
| download | mailman-ed7ad797576b5b021f04491ad1a064c662406104.tar.gz mailman-ed7ad797576b5b021f04491ad1a064c662406104.tar.zst mailman-ed7ad797576b5b021f04491ad1a064c662406104.zip | |
ARCHIVE_CLEANSER: A module that will clean messages before they're
committed to Pipermail. As this is a standard handler-style module
(i.e. it has a typical process() function), it could be used in a
pipeline to scrub messages headed to the list (i.e. a de-mimer).
Current drawback is that it's fairly hardcoded. Graft on a U/I
(easier said than done), and it could work.
| -rw-r--r-- | Mailman/Defaults.py.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index fa30d2153..5dba5c484 100644 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -184,6 +184,15 @@ DEFAULT_DIGEST_VOLUME_FREQUENCY = 1 PUBLIC_EXTERNAL_ARCHIVER = 0 PRIVATE_EXTERNAL_ARCHIVER = 0 +# A filter module that converts from multipart messages to "flat" messages +# (i.e. containing a single payload). This is required for Pipermail, and you +# may want to set it to 0 for external archivers. You can also replace it +# with your own module as long as it's importable, and contains a process() +# function that takes a MailList object and a Message object. It should raise +# Errors.DiscardMessage if it wants to throw the message away. Otherwise it +# should modify the Message object as necessary. +ARCHIVE_CLEANSER = 'Mailman.Handlers.Scrubber' + # Set this to 1 to enable gzipping of the downloadable archive .txt file. # Note that this is /extremely/ inefficient, so an alternative is to just # collect the messages in the associated .txt file and run a cron job every @@ -301,6 +310,7 @@ NNTP_REWRITE_DUPLICATE_HEADERS = [ ('to', 'X-Original-To'), ('cc', 'X-Original-Cc'), ('content-transfer-encoding', 'X-Original-Content-Transfer-Encoding'), + ('mime-version', 'X-MIME-Version'), ] # All `normal' messages which are delivered to the entire list membership go |
