OK,
I've looked in the mini-faq
I can't access the original at
the moment, but
http://mirror.ncsa.uiuc.edu/procmail-faq/mini-faq.html
works fine
Anyway:
formail -s script < mailfile
Where "script" is a script to receive each
message separately on stdin
and "mailfile" is your mailbox
Thus your script can do whatever it likes
with each message (including putting it
into a file)
Or you can go a bit more complex ...
create a procmail rcfile with rules about
what you want to do with each mail message
(e.g. called procrc)
and then:
formail -s procmail procrc < mailfile
Hope this helps
-Cheers
-Andrew Smith
> On 2001-07-28, 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?
>
> What do you want to do?
>
> [ ] Split your current mail folder into pieces?
> [ ] Save single mails while receiving mail with procmail/formail?
>
> Try the latter. Otherwise, you would need a Perl script or anything
> like and convert the existing folder.
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list