NET::IMAP problems

Discussion in 'Perl Misc' started by mk-2@corena.de, May 24, 2004.

  1. Guest

    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
    , May 24, 2004
    #1
    1. Advertising

  2. Joe Smith Guest

    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)]
    Joe Smith, May 25, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik Ormåsen

    Curier-IMAP and imap.create()

    Henrik Ormåsen, Aug 19, 2006, in forum: Ruby
    Replies:
    0
    Views:
    165
    Henrik Ormåsen
    Aug 19, 2006
  2. Jon Fi
    Replies:
    4
    Views:
    506
    Kashia Buch
    Oct 21, 2006
  3. jasonnaylor
    Replies:
    1
    Views:
    243
    jasonnaylor
    Apr 16, 2008
  4. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    4
    Views:
    186
    Eric Hodel
    Jul 4, 2009
  5. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    0
    Views:
    225
    Abhishiv Saxena
    Jul 3, 2009
Loading...

Share This Page