~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/app/docs/pipelines.rst

  • Committer: Barry Warsaw
  • Date: 2014-11-08 15:27:56 UTC
  • mfrom: (7255 3.0)
  • mto: This revision was merged to the branch mainline in revision 7260.
  • Revision ID: barry@list.org-20141108152756-p37fhmb0z2dtl7hx
Trunk merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    default-posting-pipeline
14
14
    >>> from mailman.core.pipelines import process
15
15
 
 
16
For the purposes of these examples, we'll enable just one archiver.
 
17
 
 
18
    >>> from mailman.interfaces.mailinglist import IListArchiverSet
 
19
    >>> for archiver in IListArchiverSet(mlist).archivers:
 
20
    ...     archiver.is_enabled = (archiver.name == 'mhonarc')
 
21
 
16
22
 
17
23
Processing a message
18
24
====================
43
49
    X-Mailman-Version: ...
44
50
    Precedence: list
45
51
    List-Id: <test.example.com>
 
52
    Archived-At: http://lists.example.com/.../4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB
 
53
    List-Archive: <http://lists.example.com/archives/test@example.com>
 
54
    List-Help: <mailto:test-request@example.com?subject=help>
46
55
    List-Post: <mailto:test@example.com>
47
56
    List-Subscribe: <http://lists.example.com/listinfo/test@example.com>,
48
57
     <mailto:test-join@example.com>
49
 
    Archived-At: http://lists.example.com/.../4CMWUN6BHVCMHMDAOSJZ2Q72G5M32MWB
50
58
    List-Unsubscribe: <http://lists.example.com/listinfo/test@example.com>,
51
59
     <mailto:test-leave@example.com>
52
 
    List-Archive: <http://lists.example.com/archives/test@example.com>
53
 
    List-Help: <mailto:test-request@example.com?subject=help>
54
60
    <BLANKLINE>
55
61
    First post!
56
62
    <BLANKLINE>
154
160
    <BLANKLINE>
155
161
    First post!
156
162
    <BLANKLINE>
157
 
 
158
 
 
159
 
.. Clean up the digests
160
 
   >>> digest.clear()
161
 
   >>> digest.flush()
162
 
   >>> sum(1 for msg in digest_mbox(mlist))
163
 
   0