From owner-freebsd-questions@FreeBSD.ORG Fri Nov 6 00:53:01 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 132DC106566B for ; Fri, 6 Nov 2009 00:53:01 +0000 (UTC) (envelope-from freebsd-questions-2@voidcaptain.com) Received: from mx4.x15.net (mx4.x15.net [69.55.237.194]) by mx1.freebsd.org (Postfix) with ESMTP id E89708FC15 for ; Fri, 6 Nov 2009 00:53:00 +0000 (UTC) Received: from j1.x15.net [63.196.213.76] by mx4.x15.net with ESMTP id 20090312b-1N6Cu9-0004np-4E; Fri, 06 Nov 2009 00:42:17 +0000 Message-ID: <4AF370CA.6000307@voidcaptain.com> Date: Thu, 05 Nov 2009 16:41:46 -0800 From: Pete MIME-Version: 1.0 To: "Sam Fourman Jr." References: <20091105131339.GA3804@current.Sisis.de> <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com> In-Reply-To: <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: splitting Mbox file thread-sorted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 00:53:01 -0000 Sam Fourman Jr. wrote: > On Thu, Nov 5, 2009 at 11:20 AM, jhell 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.