From owner-freebsd-questions Wed Sep 19 10:12:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.isg.siue.edu (mail.isg.siue.edu [146.163.5.4]) by hub.freebsd.org (Postfix) with ESMTP id 6B0D837B426 for ; Wed, 19 Sep 2001 10:12:53 -0700 (PDT) Received: from client156-52.ll.siue.edu (client156-52.ll.siue.edu [146.163.156.52]) by mail.isg.siue.edu (8.9.1/8.9.1) with ESMTP id MAA05250; Wed, 19 Sep 2001 12:12:48 -0500 (CDT) Received: (from vcardon@localhost) by client156-52.ll.siue.edu (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id f8JHBd906248; Wed, 19 Sep 2001 12:11:39 -0500 Date: Wed, 19 Sep 2001 12:11:39 -0500 From: "Victor R. Cardona" To: Hanno Liem Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Procmail/formail: filtering a mailbox for duplicate messages? Message-ID: <20010919121139.A6169@client156-52.ll.siue.edu> References: <20010919110351.C91131@dark4ce.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <20010919110351.C91131@dark4ce.com>; from freebsd@dark4ce.com on Wed, Sep 19, 2001 at 11:03:51AM +0200 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 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 19, 2001 at 11:03:51AM +0200, Hanno Liem wrote: > Hi, >=20 > 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)... >=20 > 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,=20 Victor --=20 Victor R. Cardona Powered by SuSE Linux 7.1 (i386) Professional GPG key ID E81B3A1C Key fingerprint =3D 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --Q68bSM7Ycu6FN28Q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message