On Tue, Nov 19, 2002 at 11:52:54AM +1100, Jon Biddell wrote:

> Does anyone know of a script / program that will delete duplicates from
> an mbox ?

Something like this:

    mv inbox inbox.save
    formail -D 8192 .msgid.cache -s < inbox.save > inbox

should do what you want.  I ran it on my inbox and it removed nothing. 
I then ran it again and it stripped some messages.  I repeated the
process with a larger cache and it removed everything the second time
through.

Save your inbox before running formail though, just in case.

To stop this happening in future, put this:

    # strip duplicate messages
    :0 Wh: msgid.lock
    | formail -D 8192 .msgid.cache

in your .procmailrc.


Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to