On Wed, 27 Jul 2011, Mark Hills mark-at-pogo.org.uk wrote: >> If mbox1 is a mail file containing duplicates, the command >> >> formail -D 8192 <cachefile> -s < mbox1 > mbox2 >> >> will produce a file mbox2 with the duplicates removed. If mbox1 is very >> large and some of the duplicate messages are far apart, you may need to >> increase the size of formail's cache of message ids from 8192 to some >> larger number. See the formail man page for an explanation of the >> command. Cachefile is just some temporary file that you designate. >> >> Hope that's useful. > > Thanks, very useful. I didn't know about the formail command. > > Unfortunately the output of mairix is a maildir (as are the source > folders). But perhaps I can easily do a similar post-processing of the > results using a shell script.
http://kremvax.net/howto/mail-duplicates.html may have the script you need. It uses reformail rather than formail, but they seem to have the same syntax for the same job in this case. Stephen Isard ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Mairix-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mairix-users
