From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8289 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.user Subject: Re: How to export nnml group to mbox file? Date: Wed, 29 Nov 2006 19:03:52 +0100 Organization: nil Message-ID: <87r6vm5dvb.fsf@gate450.dyndns.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164826091 14539 80.91.229.2 (29 Nov 2006 18:48:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 18:48:11 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Nov 29 19:48:09 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GpUTL-0002Lb-T0 for gegu-info-gnus-english@m.gmane.org; Wed, 29 Nov 2006 19:47:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpUTL-0004pT-Dn for gegu-info-gnus-english@m.gmane.org; Wed, 29 Nov 2006 13:47:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 28 Original-X-Trace: news.t-online.com 1164823432 03 26782 8ZrRLUfrWFu7np5 061129 18:03:52 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: TJBSrcZCrezp2wnh2Slzyp1kOEyEFrehDMDCfE9iA2KOAElhaX+EYD X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-, PnG. Et.Yh List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8289 Archived-At: Ted Zlatanov writes: > (while Gnus can copy/move the articles natively, it's nice to > understand how to do the job from the command line) Ack, it is also much faster than Gnus could ever be. Batch processing isn't its forte. > You should be able to just do "cat * > mbox_file" I think. But you > need a blank line at the end of every message, so this should work: > > ls | perl -ne 'chomp; open F, $_; print ; print "\n";' > mbox_file I think this would break since Gnus rewrites the From_ lines into X-From-Line headers and did From-unescaping. I found the following command in my .bash_history: --8<---------------cut here---------------start------------->8--- for f in nnml/foo/*; do sed '1s/^X-From-Line:/From/;/^$/,$s/^>*From />&/' $f; done > ~/mymbox --8<---------------cut here---------------end--------------->8--- ...which resulted in an mbox in MBOXRD format. regards, andreas