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
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english