Earl Hood wrote:
can readmail.pl, qprint.pl, and base64.pl be used to create a simple script
to parse a unix mailbox file and dump each message into a .txt file, and
each attatchment into it's appropriate filename? i've been trying to
figure out the easiest way to do this... any help you could give would be
Yes. If you read the comments in readmail.pl, you can see what you
need to do to. You basically will have to hook in your own filter
routines and auxillary routines to override the defaults in
Another trick is to use MHonArc and register the mhexternal.pl
This trick may not be the perfect solution for you, but it
could be close, and you will not need to do any programming.
There maybe a problem with associating attachments with the
corresponding txt files. You can try the -single option for
each message as an alternative.
There is also an example script in the MIME-tools distribution
that seems to do what you want. How a look at CPAN.