[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to export nnml group to mbox file?
From: |
Andreas Seltenreich |
Subject: |
Re: How to export nnml group to mbox file? |
Date: |
Wed, 29 Nov 2006 19:03:52 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
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 <F>; 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
Re: How to export nnml group to mbox file?, Oliver Heins, 2006/11/29
Re: How to export nnml group to mbox file?, Ted Zlatanov, 2006/11/29