I haven't done much of anything yet. But of course figured out how
fetchmail can do this and send it to my user locally. So that is working.
BUT, if a perl script that is cron'd will use less resources, I'd prefer
that. Plus, I need to learn Perl. It fails when it

use Mail::POP3Client; because I don't have this module, right? SO that's
what I thought I dloaded...I renamed it to POP3Client.pl Was that wrong?
Obviously. Or does my script call a module I still need to go and get?


#!/usr/bin/perl
use Mail::POP3Client;
        $pop = new Mail::POP3Client( USER =>    "myusername",
                                     PASSWORD => "mypassword",
                                     HOST => "pop.mail.server.com");
for( $1 = 1; $i <= $pop->Count(); $i++ ) {
        foreach( $pop->Head( $i ) ) {
         /^(From|Subject);\s+/i && print $_, "\n";
        }
}

a. perl path is correct.
b. the requisite stuff like user pass and server are correct...This is
supposed to get headers... looking at it I see the first thing it says is
to use itself, right? then it assigns a new instance to $pop...

The error I get when running perl -cw POP3Client.pl is "Can't locate
Mail/POP3Client.pm in @INC..." Well, once again, I think I see where .pm
is a perl module (I told you I was a beginner...)

Need direction, guidance, counseling, advice, and stern hand-slapping.

Ken

-- 
_________________________
[EMAIL PROTECTED]
http://www.quantifier.org
_________________________
The only perfect science is hind-sight.

Reply via email to