Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Nov 2009 16:41:46 -0800
From:      Pete <freebsd-questions-2@voidcaptain.com>
To:        "Sam Fourman Jr." <sfourman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: splitting Mbox file thread-sorted
Message-ID:  <4AF370CA.6000307@voidcaptain.com>
In-Reply-To: <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com>
References:  <20091105131339.GA3804@current.Sisis.de>	<alpine.BSF.2.00.0911051218270.4019@qvzrafvba.5c.ybpny> <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sam Fourman Jr. wrote:

> On Thu, Nov 5, 2009 at 11:20 AM, jhell <jhell@dataix.net> wrote:
>> On Thu, 5 Nov 2009 08:13, guru@ wrote:
>>> Hello,
>>>
>>> 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
>>>
>>
>>    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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AF370CA.6000307>