From owner-freebsd-questions Mon Feb 5 22:15:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id 1C79B37B69B for ; Mon, 5 Feb 2001 22:14:48 -0800 (PST) Received: from [64.110.74.50] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14Q1NE-00072e-00 for freebsd-questions@freebsd.org; Tue, 6 Feb 2001 09:13:09 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.20 #1) id 14Q1PV-000Aez-00 for freebsd-questions@freebsd.org; Tue, 06 Feb 2001 09:15:29 +0300 Date: Tue, 6 Feb 2001 09:15:29 +0300 From: Odhiambo Washington To: FBSD-Q Subject: DUPLICATE mail in mbox Message-ID: <20010206091529.B34789@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , FBSD-Q Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD poeza.iconnect.co.ke 4.2-STABLE FreeBSD 4.2-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is for the shell script/perl gurus: I have this client who runs a mailer daemon called MDaemon from Deerfield.com. The funny thing that has happened is that the client received some large mail and his mailbox grew so much. Whenever Mdaemon pops mail from uor server, it does not complete the POP-ping because kinda the line gets disconnected (they have some very noisy lines) - but this also results into a funny phenomena where we end up with each of the messages having a duplicate. I think it is something to do with locking on the mailbox, which is never removed because the POP-ping process terminates. Now I have a mailbox of 80MB, mostly of duplicate messages. It is in mbox format and it would be so time consummung to use something like Elm to start deleting the duplicate mails by hand. 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. TIA -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. No great intellectual thing was ever done by great effort. -John Ruskin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message