grepmail is working just fine, thank you very much scott
On Fri, 2003-03-14 at 16:58, Scott Harney wrote:
> Mat Branyon <[EMAIL PROTECTED]> writes:
>
> > Hrmm.. I accidentally imported an mbox file into itself with evolution.
> > So now I have 100000-1million emails in various folders. Is there a way
> > I can delete the multiple emails? I am willing to install any program,
> > including email clients, just to get rid of this problem. mbox files
> > are plaintext, but the mail messages span multiple lines, so I dont
> > think uniq will work. Any ideas?
>
> grepmail may help. http://grepmail.sourceforge.net
> the -u option to grepmail ensures that no duplicate messages are
> output. so "grepmail -u mbox > new.mbox" will do what you want
> according to the manpage.
>
> Alternately you may be able to run the mbox through procmail. I use
> this recipe to eliminate duplicate emails:
>
> VERBOSE=off
> PATH=$HOME:/usr/bin:/bin:/usr/local/bin:.
> MAILDIR=$HOME/Mail # You'd better make sure it exists
> DEFAULT=/var/mail/scotth
> LOGFILE=$HOME/Mail/from
> LOCKFILE=$HOME/.lockfile
> SENDMAIL=/usr/sbin/sendmail
>
> :0 Wh: msgid.lock # get's rid of duplicates
> | formail -D 8192 msgid.cache
>