Date: Fri, 6 Nov 2009 09:56:44 +0100 From: Matthias Apitz <guru@unixarea.de> To: Pete <freebsd-questions-2@voidcaptain.com> Cc: "Sam Fourman Jr." <sfourman@gmail.com>, freebsd-questions@freebsd.org Subject: Re: splitting Mbox file thread-sorted Message-ID: <20091106085644.GA1974@current.Sisis.de> In-Reply-To: <4AF370CA.6000307@voidcaptain.com> References: <20091105131339.GA3804@current.Sisis.de> <alpine.BSF.2.00.0911051218270.4019@qvzrafvba.5c.ybpny> <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com> <4AF370CA.6000307@voidcaptain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Thursday, November 05, 2009 a las 04:41:46PM -0800, Pete escribió: > >>> Is there some tool or something in the ports which could split a Mbox > >>> file into various pieces, but having the threads together? I could do > >>> it by hand with mutt, but I think it must be some tool for this too; > >>> Thx > >>> > >>> matthias > >>> > >> ... > > reformail -s maildrop < mbox_file > > will cause the whole mbox_file to be broken into individual > messages that are then (re)processed by your current maildrop > configuration (using your current .mailfilter). The reformail program > comes with maildrop; see the man page. I have no reformail(1) or maildrop(1) installed; so I checked the man page here: http://www.courier-mta.org/maildrop/reformail.html and understand what the above is doing (breaking the mbox into single mails and piping them again through a local MDA maildrop(1)). But this is not I was looking for. I want to break a big mbox file into pieces of lets say 1000 mails, and not in the order the mails are in the source file, but thread sorted; i.e. if the 1st and the last mail of this big 10.000 mbox file belong to one thread, they should be in one file; don't see how this would be possible with maildrop(1); any idea is welcome; matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <guru@unixarea.de> - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091106085644.GA1974>