Peamasii has asked for the wisdom of the Perl Monks concerning the following question:

I need to write a little script that will connect to a pop account and process each mail message as follows: If there are URL's in the body, search them by regex and do a GET on one of them. Then log the response code from the GET request and delete the message. What is the simplest way of doing this, I was thinking of using Mail::MboxParser::Mail or mail::Audit... but if anyone has a snippet or suggestion please respond. Thanks Peamasii

Replies are listed 'Best First'.
Re: Simple mail processing code
by perlplexer (Hermit) on Apr 07, 2002 at 21:52 UTC
      Oh, I see now both Audit and MboxParser require access to the mail queue on unix. Since I'm accessing a pop server, I need to use something like the ones you mention.
      Thanks!
        Also check LWP::UserAgent since you need to know the status code for each request.

        --perlplexer
Re: Simple mail processing code
by trs80 (Priest) on Apr 08, 2002 at 01:06 UTC