NET::IMAP problems

M

mk-2

Hallo!

I try to use Net::IMAP to access our IMAP servers.

~~~~~~
use Net::IMAP;

# open a connection to the IMAP server
$server = new Net::IMAP( 'localhost',
Synchronous => 1,
Debug => 1,
)
|| die ("no server");

~~~~~~
The server is 2.1.16 in Debian Linux testing.
Apparently the script connects, but does not return a valid handle.

~~~~~~
mk@orcus:~/tmp> perl -w conn2
Name "main::server" used only once: possible typo at conn2 line 4.
<- Net::IMAP=HASH(0x82c9cac) 18:24:04 [* OK orcus Cyrus IMAP4
v2.1.16-IPv6-Debian-2.1.16-4 server ready]
no server at conn2 line 4.
~~~~~~

Any other operations later on this handle are failing.
Any idea what is wrong?

Thanks
Michael
 
J

Joe Smith

Hallo!

I try to use Net::IMAP to access our IMAP servers.

~~~~~~
use Net::IMAP;

# open a connection to the IMAP server
$server = new Net::IMAP( 'localhost',
Synchronous => 1,
Debug => 1,
)
|| die ("no server");

~~~~~~
The server is 2.1.16 in Debian Linux testing.
Apparently the script connects, but does not return a valid handle.

~~~~~~
mk@orcus:~/tmp> perl -w conn2
Name "main::server" used only once: possible typo at conn2 line 4.
<- Net::IMAP=HASH(0x82c9cac) 18:24:04 [* OK orcus Cyrus IMAP4
v2.1.16-IPv6-Debian-2.1.16-4 server ready]
no server at conn2 line 4.
~~~~~~

Any other operations later on this handle are failing.
Any idea what is wrong?

I get more output than that on Red Hat 9.

<- Net::IMAP=HASH(0x831bdd8) 01:25:04 [* OK [CAPABILITY IMAP4REV1
LOGIN-REFERRALS STARTTLS AUTH=LOGIN] localhost IMAP4rev1 2001.315rh at Tue, 25
May 2004 01:04:51 -0700 (PDT)]
-> Net::IMAP=HASH(0x831bdd8) 01:25:04 [1 capability]
-> Net::IMAP=HASH(0x831bdd8) 01:25:04 [eol]
<- Net::IMAP=HASH(0x831bdd8) 01:25:04 [* CAPABILITY IMAP4REV1 IDLE NAMESPACE
MAILBOX-REFERRALS SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT
MULTIAPPEND LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
<- Net::IMAP=HASH(0x831bdd8) 01:25:04 [untagged resp callback returned
Net::IMAP::Capability=HASH(0x82c1be8)]
<- Net::IMAP=HASH(0x831bdd8) 01:25:04 [1 OK CAPABILITY completed]
<- Net::IMAP=HASH(0x831bdd8) 01:25:04 [callback returned
Net::IMAP::Response=HASH(0x82c1db0)]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top