From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8288 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: How to export nnml group to mbox file? Date: Wed, 29 Nov 2006 17:10:18 +0000 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164822128 31387 80.91.229.2 (29 Nov 2006 17:42:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Nov 2006 17:42:08 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Nov 29 18:42:05 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 1GpTQo-0002aA-Pi for gegu-info-gnus-english@m.gmane.org; Wed, 29 Nov 2006 18:41:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GpTQo-0008AT-6u for gegu-info-gnus-english@m.gmane.org; Wed, 29 Nov 2006 12:41:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!news.musoftware.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 21 Original-X-Trace: news.albasani.net rq5DMO987k2kGJHSWfmkq1d852RUkkPtJDHFDOUxYoscARG81itbU7j/KWpP1pdm8uzGUqZETFrKu2Y+rcShZA== Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 29 Nov 2006 17:10:25 +0000 (UTC) X-User-ID: 2fhYf5/u9KXmEy5OFSz9gQBYeoK6H5wvRbzjn7G6m/4= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:jw61Li2jzxElzl4OHoKseWDuHxU= User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-NNTP-Posting-Host: 1um/+CyEwfIcLIOKTyz4b4J8nl8Uy82hut7sbbih+Dw= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78473 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" 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:8288 Archived-At: On 28 Nov 2006, joh@gmx.net wrote: > I have a nnml group with many mails in it I want to export to a unix > mailbox file. After looking through the Gnus manual and then googling for it > I still came up empty handed. Probably I'm just using the wrong > keywords... (while Gnus can copy/move the articles natively, it's nice to understand how to do the job from the command line) 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 see http://www.qmail.org/man/man5/mbox.html for more info on mbox files. Try the first one first, before you do the complicated Perl one-liner :) Ted