Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: kos on November 25, 2010, 06:00:30 PM

Title: IMAP close() function called on $rcmail->imap_connect()
Post by: kos on November 25, 2010, 06:00:30 PM
Hi all.

I'm writing a plugin that needs to be able to get the users quota information. To do this I have to do the following:


$rcmail = rcmail::get_instance();
$rcmail->imap_connect();


I don't seem to have to call $rcmail->imap_init(); after I call $rcmail->imap_connect();

I get access to the quota information by doing this. However the Roundcube client keeps logging me out when I call $rcmail->imap_connect(); Do you know what can be the cause of that and how I can go around it so I will be able to finish this plugin? :)

Thanks a lot!
Title: IMAP close() function called on $rcmail->imap_connect()
Post by: kos on November 29, 2010, 06:03:22 PM
I found out what was "wrong".

It seems Roundcube doesn't connect to the imap server until after the init() method of all plugins has been called.