in reply to I need to print a string but only if it doesn't match a value in an array.

I origionally went with Mail::POP3Client but found Net::POP3 more straightforward
  • Comment on Re: I need to print a string but only if it doesn't match a value in an array.

Replies are listed 'Best First'.
Mail::POP3Client or Net::POP3
by TheoPetersen (Priest) on Feb 22, 2001 at 03:29 UTC
    I faced a similar choice with IMAP modules, and went with Net::IMAP because it had the method I needed specifically for a simple biffer. In your case, if Mail::POP3Client has a method that gets rid of a lot of your own code, it seems worth using.

    In your topic post you said you wanted to delete headers, but your approach seems error prone at best (what if you encounter a header you didn't plan on). The Body method of Mail::POP3Client works because it uses the structure of a message, not a list of known headers.

    How about giving Mail::POP3Client another go? You can post more questions or /msg me if you need help with specifics.

      yeah I actually gave it another try last night, cut my code in half, I figured that the problem I was having was that my mail server uses plaintext instead of apop, and so it kept failing. thanx for all the help my next hurdle is DBI and MySQL, wish me luck :)