Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: i3z on April 24, 2009, 12:00:39 PM

Title: How to transform login?
Post by: i3z on April 24, 2009, 12:00:39 PM
I wish to simplify input. I should enter login like site.com+user consisting of two parts - domain (do not match with imap server) and username. Somebody can tell how to transform login? I wish to enter simply user. And site.com let is added automatically.
Title: How to transform login?
Post by: patterned on May 01, 2009, 09:43:42 AM
Edit this:
$rcmail_config['username_domain'] = 'domain.com';

in this:
roundcube/config/main.inc.php

You can also turn it into an array for multiple domains, which the main.inc.php file explains.
Title: How to transform login?
Post by: i3z on May 05, 2009, 03:34:34 AM
You do not understand (sorry, my english is very bad).

My username, which is required by imap-server is mymail.com+john, not [email protected]. And i whant to cut this part in my username: "mymail.com+" and leave "john".

I can not do this by edit 'username_domain'.
Title: How to transform login?
Post by: i3z on May 27, 2009, 04:48:19 AM
This problem can't be resolved?
Title: How to transform login?
Post by: JohnDoh on May 27, 2009, 06:12:48 AM
I dont think there is any way you can do this in the default code but its very easy to mod  program/include/rcmail.php to do what you want (search for $config['username_domain'] and you will see how it works at the moment)

If you dont want to patch the core then you might also be able to do this using the new plugin api (Doc_Plugins ? RoundCube Webmail (http://trac.roundcube.net/wiki/Doc_Plugins)) there is an authenticate hook which will let you change the username between when it is input by the user and sent to the server i think.
Title: How to transform login?
Post by: corbosman on May 27, 2009, 09:19:42 AM
This is trivial through the plugin API.
Title: How to transform login?
Post by: i3z on May 28, 2009, 03:23:08 AM
Thank You!