imap client - bad tagged

Andrea Giorgini <[email protected]> Wed, 10 Jul 2019 11:19:48 +0200
Newsgroups gmane.comp.horde.devel
Message-ID <CAN88nkK5h1oNXb=nnsbcQhu5i46T+5v_bW+8dTaBv9SzuuJHPw@mail.gmail.com>
Hi,

I've managed to connect to my imap account this way:

try {
        $client = new Horde_Imap_Client_Socket(array(
            'username' => '<username>',
            'password' => '<pwd>',
            'hostspec' => '<myhost>',
            'port' => '995',
            'secure' => 'ssl',
        ));
echo "connected";
    } catch (Horde_Imap_Client_Exception $e) {
        // Any errors will cause an Exception.
        echo $e->getMessage();
    }

but then when I try for example:

$folders = $client->listMailboxes("*", Horde_Imap_Client::MBOX_ALL,
array("flat" => true));

I get:

Fatal error:  Uncaught Horde_Imap_Client_Exception: Bad tagged response. in
/usr/local/share/pear/Horde/Imap/Client/Interaction/Server/Tagged.php:43

any hint?

Thanks a lot
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]