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 -- Scott Harney<[EMAIL PROTECTED]> "...and one script to rule them all." gpg key fingerprint=7125 0BD3 8EC4 08D7 321D CEE9 F024 7DA6 0BC7 94E5
