Re: quick POP3 question

2002-01-29 Thread Sean O'Leary

At 05:55 AM 1/29/2002, you wrote:
I have the Mail::Pop3Client module installed.  I have it running with the 
debug option on, and it appears to me that the server (pop3.xtra.co.nz) is 
accepting the user and password that I send (it says OK please send PASS 
command, then OK /USER? is welcome).  But it never shows that there are 
messages in my Inbox??

That's not the way POP works.  After you login (USER is welcome here) it 
doesn't tell you anything.  You have to ask for the info you want.  In this 
case, I just think you have to call the Count method of your POP3Client 
object, then you'll know how many messages are there.

Take a look at the example code in the documentation for Mail::POP3Client.

use Mail::POP3Client;

$pop = new Mail::POP3Client( USER = me,
  PASSWORD = mypassword,
  HOST = pop3.do.main );

for ($i = 1; $i = $pop-Count(); $i++) {
 foreach ( $pop-Head( $i ) ) {
  /^(From|Subject):\s+/i and print $_, \n;
 }
 print \n;
}

The Count method is called in the for statement, and tells the loop how 
many times it has to cycle to process all of the messages.  Then the Head 
method returns a list of lines that the foreach cycles over, using the 
regular expression there to print out the From and Subject headers of each 
message.

Try running this little chunk of code yourself, and I think you'll find it 
very illustrative.

Later,

Sean.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: quick POP3 question

2002-01-29 Thread Jose Vicente

Hi friends.

I am looking for a module to access ACCESS DATABASES, please if you
have any information send me it.

Thanks in advance.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: quick POP3 question

2002-01-29 Thread Chris Zampese

thanks for the advice, but I think that it is a problem with the way the 
network is set up as I am running that exact code (straight from the 
documentation).  Cheers anyway :)

this was in reply to...

   I have the Mail::Pop3Client module installed.  I have it running with the
debug option on, and it appears to me that the server (pop3.xtra.co.nz) is
accepting the user and password that I send (it says OK please send PASS
command, then OK /USER? is welcome).  But it never shows that there are
messages in my Inbox??


That's not the way POP works.  After you login (USER is welcome here) it
doesn't tell you anything.  You have to ask for the info you want.  In this
case, I just think you have to call the Count method of your POP3Client
object, then you'll know how many messages are there.

Take a look at the example code in the documentation for Mail::POP3Client.

use Mail::POP3Client;

$pop = new Mail::POP3Client( USER = me,
 PASSWORD = mypassword,
 HOST = pop3.do.main );

for ($i = 1; $i = $pop-Count(); $i++) {
foreach ( $pop-Head( $i ) ) {
 /^(From|Subject):\s+/i and print $_, \n;
}
print \n;
}

The Count method is called in the for statement, and tells the loop how
many times it has to cycle to process all of the messages.  Then the Head
method returns a list of lines that the foreach cycles over, using the
regular expression there to print out the From and Subject headers of each
message.

Try running this little chunk of code yourself, and I think you'll find it
very illustrative.

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: quick POP3 question

2002-01-29 Thread Jenda Krynicky

From:   Chris Zampese [EMAIL PROTECTED]
I have the Mail::Pop3Client module installed.  I have it running
with the
 debug option on, and it appears to me that the server
 (pop3.xtra.co.nz) is accepting the user and password that I send 
(it
 says OK please send PASS command, then OK /USER? is 
welcome).  But it
 never shows that there are messages in my Inbox??

You said something about the mailbox to be used for 
*@your.comain.com right? 

  The documentation that I recieved from my ISP says that the
  above server (with the relevant USER and PASSWORD) is a  
  wildcard collect for @companyname.co.nz

That is all emails sent to @companyname.co.nz end up there right?
If this is true there must be something that periodically connects to 
the mailbox, fetches the mails and distributes them somehow to 
the actual persons.

Or are you the one who is supposed to install/implement 
something like this?

Please tell us something more about what are you trying to achieve.

Jenda

=== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]