Date: Wed, 19 Sep 2001 12:11:39 -0500 From: "Victor R. Cardona" <vcardon@siue.edu> To: Hanno Liem <freebsd@dark4ce.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Procmail/formail: filtering a mailbox for duplicate messages? Message-ID: <20010919121139.A6169@client156-52.ll.siue.edu> In-Reply-To: <20010919110351.C91131@dark4ce.com>; from freebsd@dark4ce.com on Wed, Sep 19, 2001 at 11:03:51AM %2B0200 References: <20010919110351.C91131@dark4ce.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Wed, Sep 19, 2001 at 11:03:51AM +0200, Hanno Liem wrote: > Hi, > > I am trying to weed out duplicate emails from a mailbox. Although it > probably could be done with a shellscript, I thought it could be done as > well with a combination of procmail and formail... (something like, keep a > list of message ID's, then move mail to /dev/null if message ID already > known)... > > Am I thinking in the right direction? Yes. Here is the relevent part of .procmailrc file. # Get rid of duplicate messages :0 Wh: msgid.lock | formail -D 8192 msgid.cache HTH, Victor -- Victor R. Cardona Powered by SuSE Linux 7.1 (i386) Professional GPG key ID E81B3A1C Key fingerprint = 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7qNHLZU/bSegbOhwRAujdAJ9XsOssE4m3h+EhTtAhxK2XcJg6QwCeKGv9 jxoeJ41/thBeWSI4039QM28= =/zR5 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010919121139.A6169>
