From owner-freebsd-questions Tue Jun 12 5:23:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alligator.wananchi.com (alligator.wananchi.com [62.8.64.108]) by hub.freebsd.org (Postfix) with ESMTP id 443CF37B412 for ; Tue, 12 Jun 2001 05:23:27 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from root by alligator.wananchi.com with local (Exim 3.22 #1) id 159nAF-0001EG-00; Tue, 12 Jun 2001 15:20:55 +0300 Received: from [209.198.248.2] (helo=siafu.iconnect.co.ke) by poeza.iconnect.co.ke with esmtp (Exim 3.20 #1) id 14Q1k8-000An1-00 for wash@poeza.iconnect.co.ke; Tue, 06 Feb 2001 09:36:48 +0300 Received: from [212.22.161.3] (helo=ns2.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14Q1hm-00095y-00 for wash@iconnect.co.ke; Tue, 6 Feb 2001 09:34:22 +0300 Received: from amavis by ns2.iconnect.co.ke with scanned-ok (Exim 3.12 #1) id 14Q1jG-000FVq-00 for wash@iconnect.co.ke; Tue, 06 Feb 2001 09:35:54 +0300 Received: from mta5.snfc21.pbi.net ([206.13.28.241]) by ns2.iconnect.co.ke with esmtp (Exim 3.12 #1) id 14Q1j7-000FQq-00 for wash@iconnect.co.ke; Tue, 06 Feb 2001 09:35:49 +0300 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 wash@iconnect.co.ke; 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 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> Subject: Re: DUPLICATE mail in mbox Status: RO X-Status: A Lines: 40 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: 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