Home > Archive > PERL Modules > May 2004 > NET::IMAP problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
NET::IMAP problems
|
|
| mk-2@corena.de 2004-05-24, 1:30 pm |
| 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
| |
| Joe Smith 2004-05-25, 5:33 am |
| mk-2@corena.de wrote:
> 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)]
|
|
|
|
|