2000-03-03-18:32:55 Bennett Todd:
> For completeness, here's maildir2mbox, using the formail(1) utility
> that comes with procmail (to make sure every message has a good
> "From " header prepended):
>
> find maildir-name -type f|xargs -l formail >mbox-name
BRAAK. Should test my commands before I ship 'em, that doesn't work
at all, "formail filename" is a syntax error. Formail wants it input
on its stdin. I couldn't find a way to do the deed with xargs, but
(actually tested!) this works in a Bourne-style shell:
find maildir-name -type f|while read f;do formail <$f; done >mbox-name
-Bennett
PGP signature