> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Lentz, Wayne
> Sent: Wednesday, December 10, 2003 7:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: [SAtalk] Help with Mark Motley's perl script
> 
> Guys,
> 
> I'm trying to use the perl script that Mark posted, for 
> feeding bayes with mail in our Exchange5.5 public folders.  
> But when I execute the script it, it gives me the error 
> below.  I know squat about perl and google isn't giving me 
> much, so I'm hoping you guys can help me help me with this.
> Thanks all.
> 
> System info:
> OpenBSD 3.3 with Postfix 2.0.13
> Amavisd-new with SA 2.55
> Perl modules, including SA, installed via CPAN.
> 
> 
> When I run the script it gives me this error:
> 
> Can't call method "select" on an undefined value at 
> /usr/local/sbin/my-msex-spam.pl line 17.
> 
> 
> And here is my personalized version of his script (thanks much Mark):
> 
> ---- start of file ---
> 
> #!/usr/bin/perl
> 
> use Mail::IMAPClient;
> use Sys::Syslog;
> 
> my $FOLDER_NAME = 'Public Folders/All Public 
> Folders/SpamLearn'; my $SEQ = 1; 
> openlog('pullspam','cons,pid', 'user');
> 
> my $server = Mail::IMAPClient->new(
>         Server => "<msexsrv1.knust.com>",
>         User => "<spamlearn>",
>         Password => "<houston>",
>         Uid => 1,
>         Debug => 0 );
> 
> $server->select($FOLDER_NAME);


I was having trouble with the above my $server line when
I was trying to get the code to run.  The version of this
script I'm running looks like this:

# login to imap server
my $imap = Mail::IMAPClient->new (Server=>$imapserver, User=>$uid,
Password=>$pwd, Debug=>$debug)
        or die "Can't connect to [EMAIL PROTECTED]: $@ $\n";

When I tried the above version it seemed to get confused that there
was a User and a Uid field, it kept failing the login.

Scott


I'm using the perl script found at:
http://marc.theaimsgroup.com/?l=spamassassin-talk&m=104806917615490&w=2



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to