[dev] imap client - bad tagged

Andrea Giorgini agiorg at gmail.com
Wed Jul 10 09:19:48 UTC 2019


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


More information about the dev mailing list