On Sat, Jul 28, 2001 at 07:04:22PM +0700, loeung vidol wrote:
> Well, I tested with 'formail'; but I seemed to find that, it only works with
> a single message; doesn't it? What I would like is that, my mail box
> (/var/spool/mail/david), which may contain many mails, is dumped into
> different files, one file for each mail.
> Any more ideas of how it is done?
The formail program is the right tool for the job here. Getting the
shell quoting to work as required is a bit tricky, but I think that
something along these lines should work:
formail -s sh -c 'cat > $FILENO' < /var/spool/mail/david
Check out the formail man page, especially the sections on the -s
switch and on the FILENO environment variable, for details of how this
works.
--
John Kodis <[EMAIL PROTECTED]>
Phone: 301-286-7376
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list