~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

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

  • Committer: Barry Warsaw
  • Date: 2012-03-17 17:26:05 UTC
  • Revision ID: barry@list.org-20120317172605-1houqkv6kxvscoyp
Adjustments after landing the nopipermail branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
Sending the message to the archiver
46
46
===================================
47
47
 
48
 
The archiver is also able to archive the message.
49
 
::
50
 
 
51
 
    >>> archivers['pipermail'].archive_message(mlist, msg)
 
48
The `prototype` archiver archives messages to a maildir.
52
49
 
53
50
    >>> import os
54
 
    >>> from mailman.interfaces.archiver import IPipermailMailingList
55
 
    >>> pckpath = os.path.join(
56
 
    ...     IPipermailMailingList(mlist).archive_dir(),
57
 
    ...     'pipermail.pck')
58
 
    >>> os.path.exists(pckpath)
59
 
    True
60
 
 
61
 
The `prototype` archiver archives messages to a maildir.
62
 
 
63
51
    >>> archivers['prototype'].archive_message(mlist, msg)
64
52
    >>> archive_path = os.path.join(
65
53
    ...     config.ARCHIVE_DIR, 'prototype', mlist.fqdn_listname, 'new')