~andrea-crotti-0/mailman/test_doc

« back to all changes in this revision

Viewing changes to src/mailman/archiving/docs/common.rst

  • Committer: Barry Warsaw
  • Date: 2012-03-17 16:54:26 UTC
  • mfrom: (7112.2.2 nopipermail)
  • Revision ID: barry@list.org-20120317165426-gh7r1owr9n8p0gvh
Merge the Pipermail eradication branch.  The scrubber is also removed.

 * Configuration variable `[mailman]filtered_messages_are_preservable`
   controls whether messages which have their top-level `Content-Type`
   filtered out can be preserved in the `bad` queue by list owners.
 * Configuration section `[scrubber]` removed, as is the scrubber handler.
   This handler was essentially incompatible with Mailman 3 since it required
   coordination with Pipermail to store attachments on disk.

 * Schema additions:
   - mailinglist.filter_action

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
the archive.  This latter is appropriate for the message footer or for the RFC
22
22
5064 ``Archived-At:`` header.
23
23
 
24
 
Pipermail does not support a permalink, so that interface returns ``None``.
25
24
Mailman defines a draft spec for how list servers and archivers can
26
25
interoperate.
27
26
 
38
37
    mhonarc
39
38
        http://lists.example.com/.../test@example.com
40
39
        http://lists.example.com/.../RSZCG7IGPHFIRW3EMTVMMDNJMNCVCOLE
41
 
    pipermail
42
 
        http://www.example.com/pipermail/test@example.com
43
 
        None
44
40
    prototype
45
41
        http://lists.example.com
46
42
        http://lists.example.com/RSZCG7IGPHFIRW3EMTVMMDNJMNCVCOLE
173
169
Messages sent to a local MHonArc instance are added to its archive via a
174
170
subprocess call.
175
171
 
 
172
    >>> from mailman.testing.helpers import LogFileMark
 
173
    >>> mark = LogFileMark('mailman.archiver')
176
174
    >>> archiver.archive_message(mlist, msg)
177
 
    >>> archive_log = open(os.path.join(config.LOG_DIR, 'archiver'))
178
 
    >>> try:
179
 
    ...     contents = archive_log.read()
180
 
    ... finally:
181
 
    ...     archive_log.close()
182
 
    >>> print 'LOG:', contents
183
 
    LOG: ... /usr/bin/mhonarc -add
184
 
        -dbfile /.../private/test@example.com.mbox/mhonarc.db
185
 
        -outdir /.../mhonarc/test@example.com
186
 
        -stderr /.../logs/mhonarc
187
 
        -stdout /.../logs/mhonarc
188
 
        -spammode -umask 022
189
 
        ...
 
175
    >>> print 'LOG:', mark.readline()
 
176
    LOG: ... /usr/bin/mhonarc
 
177
         -add
 
178
         -dbfile .../test@example.com.mbox/mhonarc.db
 
179
         -outdir .../mhonarc/test@example.com
 
180
         -stderr .../logs/mhonarc
 
181
         -stdout .../logs/mhonarc -spammode -umask 022
 
182
 
190
183
 
191
184
.. _`The Mail Archive`: http://www.mail-archive.com
192
185
.. _MHonArc: http://www.mhonarc.org