splitting Mbox file thread-sorted
freebsd-questions-2 at voidcaptain.com
Fri Nov 6 00:53:01 UTC 2009
Sam Fourman Jr. wrote:
> On Thu, Nov 5, 2009 at 11:20 AM, jhell <jhell at dataix.net> wrote:
>> On Thu, 5 Nov 2009 08:13, guru@ wrote:
>>> 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;
>> To my best belief mail/procmail should be able to do what you want with
>> the proper recipe and then just re-filtering your mail from your mbox.
> if anyone could post a procmail recipe that would be GREAT. I have
> been wanting to do this.
> Sam Fourman Jr.
> Fourman Networks
Dunno about procmail, but it's easy to resort with maildrop:
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.
More information about the freebsd-questions