On Wed, 27 Jul 2011, Stephen Isard wrote: > On Wed, 27 Jul 2011, Mark Hills mark-at-pogo.org.uk wrote: > > > In cases where I have sent via a mailing list, I will often get two copies > > of a message. eg. one in my outbox, the other in my inbox via the mailing > > list; or one in the mailing list folder, and one CC'd personally to me in > > my inbox. > > > > Is there a way to filter these duplicates from mairix results? > > Does your operating system have the formail command? I think most unix > variants do. > > 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. I still want to retain the duplicates in my source folders, as they reflect the delivery of the mail. Thanks -- Mark ------------------------------------------------------------------------------ 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 Mairix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mairix-users