Date: Wed, 27 Jan 1999 17:44:01 -0600 From: Dan Nelson <dnelson@emsphone.com> To: root@isis.dynip.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to archive Huge mailing list folders Message-ID: <19990127174401.A21840@dan.emsphone.com> In-Reply-To: <199901272158.AAA77569@isis.dynip.com>; from "root@isis.dynip.com" on Thu Jan 28 00:58:29 GMT 1999 References: <199901272158.AAA77569@isis.dynip.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 28), root@isis.dynip.com said: > Hi there, > I was wondering how to archive the mailing lists I'm getting from > freebsd (REALLY BIG), I know that FreeBSD sites have their system of > automaticslly archiving all mailing lists every week, so I would like > to adopt a similar mechanism. Any pointers to downloads, docs is > appreciated. Thanks. My solution: .procmailrc: MAILDIR=$HOME/Mail :0: * ^Sender: owner-freebsd-hackers@.*freebsd.org | ./archive bsdh >> bsdh Mail/archive: #!/usr/local/bin/zsh # Usage: archive [outfile] # # Takes an email message from stdin, tags it read, and appends it to # outfile. Also passes the message to stdout, after having passed it # through formail. afile=Archives/$1 lockfile -t 60 $afile.lock > >( formail -i "Status: RO" >> $afile ) | formail rm -f $afile.lock What I end up with is a tree like this: ~/Mail: drwx------ 2 dan dan 512 Jan 25 22:50 Archives/ -rwx------ 1 dan dan 322 Nov 4 23:33 archive* -rw------- 1 dan dan 41696 Jan 27 17:35 bsdc -rw------- 1 dan dan 19513 Jan 27 17:21 bsdh -rw------- 1 dan dan 32414 Jan 27 17:37 bsdq ~/Mail/Archives: -rw------- 1 dan dan 72569857 Jan 27 17:35 bsdc -rw------- 1 dan dan 83708313 Jan 27 17:21 bsdh -rw------- 1 dan dan 206382529 Jan 27 17:37 bsdq I then browse my archives with mutt the same way I read my live mailboxes (except I don't delete the messages :). If you wanted, you you put a call to hypermail etc, in the "archive" script to update an html index on the fly. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990127174401.A21840>