diff options
| author | Barry Warsaw | 2008-07-09 22:35:44 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-07-09 22:35:44 -0400 |
| commit | 82de03b4699cb9e841f4196ff7c92e043056d3e3 (patch) | |
| tree | 06ffed62dc4ffb55ef1036f02268dee5a0aa6847 /mailman/docs | |
| parent | 3929c688da2b275a1bb965152cca8a7352557ffc (diff) | |
| download | mailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.tar.gz mailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.tar.zst mailman-82de03b4699cb9e841f4196ff7c92e043056d3e3.zip | |
Add rough support for a local MHonArc archiver, using the permalink proposal
from the prototype archiver.
Add a mailman.archiver log.
Diffstat (limited to 'mailman/docs')
| -rw-r--r-- | mailman/docs/archivers.txt | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/mailman/docs/archivers.txt b/mailman/docs/archivers.txt index 96cdb5c3d..c8ddb73e4 100644 --- a/mailman/docs/archivers.txt +++ b/mailman/docs/archivers.txt @@ -32,6 +32,9 @@ interoperate. mail-archive http://go.mail-archive.dev/test%40example.com http://go.mail-archive.dev/ZaXPPxRMM9_hFZL4vTRlQlBx8pc= + mhonarc + http://www.example.com/.../test@example.com + http://www.example.com/.../RSZCG7IGPHFIRW3EMTVMMDNJMNCVCOLE pipermail http://www.example.com/pipermail/test@example.com None @@ -134,14 +137,47 @@ Additionally, this archiver can handle malformed Message-IDs. >>> del msg['message-id'] >>> msg['Message-ID'] = '12345>' >>> archiver.permalink(mlist, msg) - 'http://go.mail-archive.dev/ZaXPPxRMM9_hFZL4vTRlQlBx8pc=' + 'http://go.mail-archive.dev/bXvG32YzcDEIVDaDLaUSVQekfo8=' >>> del msg['message-id'] >>> msg['Message-ID'] = '<12345' >>> archiver.permalink(mlist, msg) - 'http://go.mail-archive.dev/ZaXPPxRMM9_hFZL4vTRlQlBx8pc=' + 'http://go.mail-archive.dev/9rockPrT1Mm-jOsLWS6_hseR_OY=' >>> del msg['message-id'] >>> msg['Message-ID'] = '12345' >>> archiver.permalink(mlist, msg) 'http://go.mail-archive.dev/ZaXPPxRMM9_hFZL4vTRlQlBx8pc=' + + >>> del msg['message-id'] + >>> msg['Message-ID'] = ' 12345 ' + >>> archiver.permalink(mlist, msg) + 'http://go.mail-archive.dev/ZaXPPxRMM9_hFZL4vTRlQlBx8pc=' + + +MHonArc +------- + +The MHonArc archiver <http://www.mhonarc.org> is also available. + + >>> archiver = config.archivers['mhonarc'] + >>> archiver.name + 'mhonarc' + +Messages sent to a local MHonArc instance are added to its archive via a +subprocess call. + + >>> archiver.archive_message(mlist, msg) + >>> archive_log = open(os.path.join(config.LOG_DIR, 'archiver')) + >>> try: + ... contents = archive_log.read() + ... finally: + ... archive_log.close() + >>> print 'LOG:', contents + LOG: ... /usr/bin/mhonarc -add + -dbfile /.../private/test@example.com.mbox/mhonarc.db + -outdir /.../mhonarc/test@example.com + -stderr /.../logs/mhonarc + -stdout /.../logs/mhonarc + -spammode -umask 022 + ... |
