[mew-int 00712] Re: Transform a folder in mbox format

Im Eunjea eunjea at example.com
Tue Feb 19 22:30:37 JST 2002


* Arnaud Vandyck <arnaud.vandyck at example.com> :
> Hi,
>
> I'd like to use hypermail to  archive some folders on a website. Is it
> possible to transform a mew folder in mbox format? 
>
> I did try this, but hypermail just see one message:
>
> touch mymbox
>
> for file in Mail/myfolder/*; do
>
> 	cat $file>>mymbox
> 	echo "" >>mymbox
>
> done;

try to this, it's work for me (tm):

for file in Mail/myfolder/* ;
do
    formail -I "From " -a "From " < $file >> mymbox ;
done

-- 
http://kldp.org/~eunjea/
GnuPG fingerprint: 08C9 2D3F 91B2 D395 2EFF  4C33 544C 321C E194 91CF

Thus spake the master programmer:
	"A well-written program is its own heaven; a poorly-written program
is its own hell."
		-- Geoffrey James, "The Tao of Programming"



More information about the Mew-int mailing list