Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: davidmpaz on January 27, 2009, 12:13:49 PM

Title: IMAP accounts question
Post by: davidmpaz on January 27, 2009, 12:13:49 PM
Hello to all,
Can any body tell me how could I create an IMAP account from script (any script).
I know this question is not about RC ;) but I want to use it, and also want to be able to create new accounts automatically to check/send mails later with RC, can this be done ?

Any ideas will help

Thanks for listen David.
Title: IMAP accounts question
Post by: rosali on January 27, 2009, 02:35:50 PM
Well, this depends how to get access to the user administration of your IMAP backend by PHP or any other scripting language ... RoundCube is only a client like Outlook(E) or Thunderbird.
Title: IMAP accounts question
Post by: davidmpaz on January 28, 2009, 02:08:27 PM
Oh thanks for tht quick reply.

I would like to ask something else please:
Since I have user authenticated in the main app I'd like to automatically login user (not show the login form), how should I do that, can I point to an url, do some ajax post; what should  I do?

I have tried to modified the index.php without success. Btw I'm using 0.2 stable
Title: IMAP accounts question
Post by: rosali on January 29, 2009, 12:31:16 AM
Just right click on the login page to see the source code.

Usually it is enough to post _user, _pass, _host into http://url_to_roundcube/?_task=mail&_action=login.
Title: IMAP accounts question
Post by: davidmpaz on January 29, 2009, 11:13:48 AM
THAKNS !!!!!  :) a lot; everything goes well, even when logging out too. Right now I will go through the templates to customize the look & feel to fit it to the main app.

Again thank a lot.

David