RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Older Versions > 0.1 Beta 1

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 07-03-2006, 11:06 AM
Registered User
 
Join Date: Jul 2006
Posts: 5
Downloads: 0
Uploads: 0
Default how to change login format

Hello,
I'm using a fix mail server with roundcube (mail.domain.com) and I don't want to insert the whole email-address as username every time I log in. So I'd like to know if it is possible just to enter the username?
username
password

instead of
username@domain.com
password


Thanks in advance,

faziatic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-03-2006, 12:22 PM
flosoft's Avatar
Administrator
 
Join Date: Jun 2006
Location: Brussels, Belgium
Posts: 349
Downloads: 1
Uploads: 0
Send a message via ICQ to flosoft Send a message via AIM to flosoft Send a message via MSN to flosoft
Default Re: how to change login format

well depends on your mailserver. Maybe your mailserver supports logins with only the username.
__________________
New VPS for just 9,99!
Flosoft.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-03-2006, 12:30 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Downloads: 0
Uploads: 0
Default Re: how to change login format

In fact I have to use the whole address in my outlook-account but I thought it was possible to "hide" the @domain.com but send it anyway. I used Uebimiau in the past and there was this kind of option .....
So no chance to workaround somehow ? via php?

thx so far
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-03-2006, 12:34 PM
flosoft's Avatar
Administrator
 
Join Date: Jun 2006
Location: Brussels, Belgium
Posts: 349
Downloads: 1
Uploads: 0
Send a message via ICQ to flosoft Send a message via AIM to flosoft Send a message via MSN to flosoft
Default Re: how to change login format

Atleast for SMTP you can use the %u and %p. Try to set them to:
%u@mydomain.com
%p@mydomain.com
__________________
New VPS for just 9,99!
Flosoft.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-03-2006, 01:02 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Downloads: 0
Uploads: 0
Default Re: how to change login format

Hello, thanks for the quick answer.
Unfortunately it doesn't change anything.
Looking for another solution I was trying to choose from a dropdown-box betweeen 2 domains.
I read these lines in another thread:

$rcmail_config['default_host'] = 'mail.1550.co.nz';
If you leave this blank, you will be able to specify your host via a textbox on the loginscreen.

$rcmail_config['mail_domain'] = '';
If you use no default_host you are able to create a dropdown box with several servers.

My lines look like this:

$rcmail_config['default_host'] = '';
$rcmail_config['default_port'] = 143;
$rcmail_config['mail_domain'] = array('mail.domain1.com'=> 'domain1.com', 'mail.domain2.com'=> 'domain2.com');

but all I see on the login-page are three fields, (username, password, mail-server). Shouldn't I get a dropdown-list with the 2 domains?

faziatic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-03-2006, 01:08 PM
flosoft's Avatar
Administrator
 
Join Date: Jun 2006
Location: Brussels, Belgium
Posts: 349
Downloads: 1
Uploads: 0
Send a message via ICQ to flosoft Send a message via AIM to flosoft Send a message via MSN to flosoft
Default Re: how to change login format

Well the other problem is, you don't need the mailserver, but the login.
The Mailserver setting is the mailserver. It doesn't have any influence on the login afaik :S
__________________
New VPS for just 9,99!
Flosoft.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-03-2006, 01:18 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Downloads: 0
Uploads: 0
Default Re: how to change login format

My main problem is that I don't want to type the whole address. So if I had the chance to either choose froma dropdown-box with 2 different domains or just to type in the username without domainname... it would be marvellous.
I'll try to find a workaround , always hoping that someone comes up with a solution
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 07-03-2006, 01:22 PM
flosoft's Avatar
Administrator
 
Join Date: Jun 2006
Location: Brussels, Belgium
Posts: 349
Downloads: 1
Uploads: 0
Send a message via ICQ to flosoft Send a message via AIM to flosoft Send a message via MSN to flosoft
Default Re: how to change login format

I know there was a patch for this on the old forum. Maybe someone will repost this.
__________________
New VPS for just 9,99!
Flosoft.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 07-03-2006, 01:33 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Downloads: 0
Uploads: 0
Default Re: how to change login format

That would be awesome
Summa summarum, Roundcube is amazing... really like it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 07-11-2006, 01:21 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Downloads: 0
Uploads: 0
Default Re: how to change login format

Hello,

If anybody want to login via username only without @domain.com, he can do the following:

Edit the file: program/include/main.inc

Inside the function rcmail_login($user, $pass, $host=NULL), after the :

global $CONFIG, $IMAP, $DB, $sess_user_lang;
$user_id = NULL;

add these lines:

$headers = apache_request_headers();
foreach ($headers as $header => $value) {
if($header=='Host'){
$str=explode(".",$value,2);
$user.='@'.$str[1];
}
}

Then we can login using username only, there is no need to provide the full email address.

Good Luck for every body.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community