RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > News and Announcements > General Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 02-02-2007, 06:23 PM
Registered User
 
Join Date: Feb 2007
Posts: 2
Downloads: 0
Uploads: 0
Default Usernames and return addresses

I am on a server that "mangles" the username, making it "hostname-username".

This means that instead of new mail's return address being "username@hostname.com" it becomes "hostname-username@hostname.com".

The actual email address for the user is "username@domain.com"; it's only the login username that is mangled.

I've been trying to figure out the configuration options as I suspect there may be some way of mapping the actual email address to the return address, instead of using the login username.

I can hack the code to remove the prefix, but I'd prefer to use a configuration setting if there is one that will solve this problem.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-03-2007, 05:30 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Usernames and return addresses

Ok, if anybody else has this issue, perhaps this will help them.

In program/include/main.inc, after the comment at line 588, add these two lines:
Code:
  $user_name = substr($user_name, strpos($user_name, "-")+1);
  $user_email = substr($user_email, strpos($user_email, "-")+1);
This will work, as long as the "prefix" added by your system does not have a hyphen in the prefix. My system uses the domain's account name, and it does not allow a prefix in the account name, so it's fine for my situation.
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 12:46 AM.


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