From owner-freebsd-questions@FreeBSD.ORG Fri Nov 6 08:56:43 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 0B0DE106566B for ; Fri, 6 Nov 2009 08:56:43 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id BA7748FC23 for ; Fri, 6 Nov 2009 08:56:42 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id 47053183FE03A; Fri, 6 Nov 2009 09:56:41 +0100 (CET) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id nA68uiac002855; Fri, 6 Nov 2009 09:56:44 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 6 Nov 2009 09:56:44 +0100 From: Matthias Apitz To: Pete Message-ID: <20091106085644.GA1974@current.Sisis.de> References: <20091105131339.GA3804@current.Sisis.de> <11167f520911051358o3581b15x2c73e616df3bf9e3@mail.gmail.com> <4AF370CA.6000307@voidcaptain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4AF370CA.6000307@voidcaptain.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Cc: "Sam Fourman Jr." , 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 Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2009 08:56:43 -0000 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 - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu