Re: newbie problem with Mail::POP3Client;

2004-10-01 Thread Wiggins d Anconia
 I'm sure you've seen this one hundreds of times!


Uh, nope.  Which is really nice.
 
 I copied the following script, downloaded and installed the POP3Client 
 module but it doesn't want to connect to an external POP3 server for me, 
 for some reason.  I have put in the correct pop3 server, username and 
 password, at least the same ones that work for me and will connect
Mozilla.
 
 Any thoughts about how to find the problem and/or debug?
 

Did you turn on the DEBUG switch?  There is a section in the docs that
state that it will give an indication of errors. I copied your script,
turned it on, saw that the connection was successful by login was not. I
then attempted switching the AUTH_MODE for my connection to PASS (yes I
know what this means, do you? If not, learn before doing so.) and
everything then worked.

 It runs, but I get You have -1 messages
 

The docs state that currently the only way to check for successful
connection is to ask for the number of messages, with -1 indicating
connection failure. I suspect 0 is success but empty, and 1 meaning
success and with messages.

Granted this is fairly annoying and I would think getting that switched
is high on their list.

 I suspect the -1 means the variable has not been initialized or for some 
 reason it will not connect to the server.
 

-1 is initialization of the variable, just not a connection.

 TIA
 
 Jim
 

snip code

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: newbie problem with Mail::POP3Client;

2004-10-01 Thread Jim Maas
Thanks for this.  I'm not completely new but haven't found any sort of 
comprehensive docs, only cryptic ones.  Where might I find it?

By debug switch do you mean the optional debug_flag ?  No I haven't but 
about to.

No idea what AUTH_MODE means, and my two oreilly perl books don't tell 
me either but I'll try and Google for it.

Thanks, have moved on a little!
Jim
Did you turn on the DEBUG switch?  There is a section in the docs that
state that it will give an indication of errors. I copied your script,
turned it on, saw that the connection was successful by login was not. I
then attempted switching the AUTH_MODE for my connection to PASS (yes I
know what this means, do you? If not, learn before doing so.) and
everything then worked.
 

It runs, but I get You have -1 messages
   

The docs state that currently the only way to check for successful
connection is to ask for the number of messages, with -1 indicating
connection failure. I suspect 0 is success but empty, and 1 meaning
success and with messages.
Granted this is fairly annoying and I would think getting that switched
is high on their list.
 

I suspect the -1 means the variable has not been initialized or for some 
reason it will not connect to the server.

   

-1 is initialization of the variable, just not a connection.
 

TIA
Jim
   

snip code
http://danconia.org
 

--
==
Jim Maas Ph.D.
29 Amber Close
Earley, Reading, UK
RG6 7ED
0118-935-3283
0771-985-8698
jamaas at btinternet dot com


Re: newbie problem with Mail::POP3Client;

2004-10-01 Thread Wiggins d Anconia
Please bottom post

 
 Thanks for this.  I'm not completely new but haven't found any sort of 
 comprehensive docs, only cryptic ones.  Where might I find it?
 

Documentation for modules available on CPAN are always available online
in a quite readable format, for example,

http://search.cpan.org/~sdowd/Mail-POP3Client-2.16/POP3Client.pm

Also you can access most modules documentation after installation by
issuing,

perldoc module name
perldoc Mail::POP3Client

 By debug switch do you mean the optional debug_flag ?  No I haven't but 
 about to.

Well yes, but it is 'DEBUG', and is passed to the constructor.

 
 No idea what AUTH_MODE means, and my two oreilly perl books don't tell 
 me either but I'll try and Google for it.
 

AUTH_MODE sets the mode that the POP client will use to send the
password. The POP3 server on the other end may or may not support
encrypted (actually hashed but that's another topic) passwords in
which case the AUTH_MODE may need to be set to tell the client to send
the password in clear text.  Setting AUTH_MODE to BEST seems to allow
the most flexibility. 

 Thanks, have moved on a little!
 
 Jim
 

No problem.

http://danconia.org

 Did you turn on the DEBUG switch?  There is a section in the docs that
 state that it will give an indication of errors. I copied your script,
 turned it on, saw that the connection was successful by login was not. I
 then attempted switching the AUTH_MODE for my connection to PASS (yes I
 know what this means, do you? If not, learn before doing so.) and
 everything then worked.
 
   
 
 It runs, but I get You have -1 messages
 
 
 
 
 The docs state that currently the only way to check for successful
 connection is to ask for the number of messages, with -1 indicating
 connection failure. I suspect 0 is success but empty, and 1 meaning
 success and with messages.
 
 Granted this is fairly annoying and I would think getting that switched
 is high on their list.
 
   
 
 I suspect the -1 means the variable has not been initialized or for
some 
 reason it will not connect to the server.
 
 
 
 
 -1 is initialization of the variable, just not a connection.
 
   
 
 TIA
 
 Jim
 
 
 
 
 snip code
 
 http://danconia.org
 
   
 
 
 -- 
 
 
 ==
 Jim Maas Ph.D.
 29 Amber Close
 Earley, Reading, UK
 RG6 7ED
 
 0118-935-3283
 0771-985-8698
 jamaas at btinternet dot com
 
 
 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




Re: newbie problem with Mail::POP3Client;

2004-10-01 Thread Jim Maas
Hi Wiggins,
It works!  Thanks a bunch.  I'm no computer newbie but am new to Perl, 
and where does one get started?  It was the AUTH_MODE, which had to be 
set to 'PASS'.  The machine it is connecting to is a Sun running Linux, 
but I don't know the flavour or what mailer.  This is just a 
demo/prototype but will try to upgrade this security in future.

I know the module installed the MAIL::POP3Client documentation when it 
installed but my bash just says
no such command as perldoc ...

Another challenge!
Thanks
Jim
Wiggins d Anconia wrote:
Please bottom post
 

Thanks for this.  I'm not completely new but haven't found any sort of 
comprehensive docs, only cryptic ones.  Where might I find it?

   

Documentation for modules available on CPAN are always available online
in a quite readable format, for example,
http://search.cpan.org/~sdowd/Mail-POP3Client-2.16/POP3Client.pm
Also you can access most modules documentation after installation by
issuing,
perldoc module name
perldoc Mail::POP3Client
 

By debug switch do you mean the optional debug_flag ?  No I haven't but 
about to.
   

Well yes, but it is 'DEBUG', and is passed to the constructor.
 

No idea what AUTH_MODE means, and my two oreilly perl books don't tell 
me either but I'll try and Google for it.

   

AUTH_MODE sets the mode that the POP client will use to send the
password. The POP3 server on the other end may or may not support
encrypted (actually hashed but that's another topic) passwords in
which case the AUTH_MODE may need to be set to tell the client to send
the password in clear text.  Setting AUTH_MODE to BEST seems to allow
the most flexibility. 

 

Thanks, have moved on a little!
Jim
   

No problem.
http://danconia.org
 

Did you turn on the DEBUG switch?  There is a section in the docs that
state that it will give an indication of errors. I copied your script,
turned it on, saw that the connection was successful by login was not. I
then attempted switching the AUTH_MODE for my connection to PASS (yes I
know what this means, do you? If not, learn before doing so.) and
everything then worked.

 

It runs, but I get You have -1 messages
  

   

The docs state that currently the only way to check for successful
connection is to ask for the number of messages, with -1 indicating
connection failure. I suspect 0 is success but empty, and 1 meaning
success and with messages.
Granted this is fairly annoying and I would think getting that switched
is high on their list.

 

I suspect the -1 means the variable has not been initialized or for
   

some 
 

reason it will not connect to the server.
  

   

-1 is initialization of the variable, just not a connection.

 

TIA
Jim
  

   

snip code
http://danconia.org

 

--
==
Jim Maas Ph.D.
29 Amber Close
Earley, Reading, UK
RG6 7ED
0118-935-3283
0771-985-8698
jamaas at btinternet dot com

   


 

--
==
Jim Maas Ph.D.
29 Amber Close
Earley, Reading, UK
RG6 7ED
0118-935-3283
0771-985-8698
jamaas at btinternet dot com