in reply to Read Email Attachments

You can use either MIME::Lite or MIME::Parser to retrieve email attachments. In fact, a program doing just that has already been written and posted to PerlMonks some time ago.

Here's the node:

MIME Attachment Extractor

You may refer at the code for some concrete examples on how to implement the mentioned modules in your particular program in order for you to be able to extract your email attachments.

Cheers.

UPDATE: thanks Joost, I shouldn't have mentioned MIME::Lite. However, MIME::Parse may still do a perfect job ;-)

_____________________
$"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+) +-.*)$/;$_=&#91"ps -e -o pid | "," $2 | "," -v "," "]`@$_`?{print" ++ $1"}:{print"- $1"}&&`rm $1`;print"\n";}

Replies are listed 'Best First'.
Re: Re: Read Email Attachments
by Joost (Canon) on May 17, 2002 at 12:41 UTC
    From the MIME::Lite manpage:

    ...MIME::Lite is intended as a simple, standalone module for generating (not parsing!) MIME messages...

    Use MIME::Tools (which contains MIME::Parser)

    -- Joost downtime n. The period during which a system is error-free and immune from user input.