From owner-freebsd-questions Mon Feb 5 22:50:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 046E037B491 for ; Mon, 5 Feb 2001 22:50:02 -0800 (PST) Received: from xor.obsecurity.org ([64.165.226.103]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G8B00LI0OHIVC@mta5.snfc21.pbi.net> for freebsd-questions@freebsd.org; Mon, 5 Feb 2001 22:24:54 -0800 (PST) Received: by xor.obsecurity.org (Postfix, from userid 1000) id C52AB66B62; Mon, 05 Feb 2001 22:27:32 -0800 (PST) Date: Mon, 05 Feb 2001 22:27:32 -0800 From: Kris Kennaway Subject: Re: DUPLICATE mail in mbox In-reply-to: <20010206091529.B34789@poeza.iconnect.co.ke>; from wash@iconnect.co.ke on Tue, Feb 06, 2001 at 09:15:29AM +0300 To: Odhiambo Washington Cc: FBSD-Q Message-id: <20010205222732.A2228@mollari.cthul.hu> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010206091529.B34789@poeza.iconnect.co.ke> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 06, 2001 at 09:15:29AM +0300, Odhiambo Washington wrote: > I hope one of the gurus has a script solution for this. Each mail does have > a unique message-id whenever it is delivered. I hope someone can use this to prune > the mbox via some shell/perl script, which is what I'm looking for. This procmail recipe should help: ####################################################### # KEEP AN 8K CACHE OF MESSAGE IDS AND FILTER DUPLICATES ####################################################### :0 Wh: msgid.lock | formail -D 8192 msgid.cache You might need to increase the cache size if you have a lot of messages in between the mail and its duplicate. Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6f5lUWry0BWjoQKURArEJAKCd8rMvs9SKOcdRwjLyWEW1jsi5IgCeKv/G rEGFagu6x7HghAH626edj/Q= =qTO6 -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message