Roundcube Community Forum

Release Support => Pending Issues => Topic started by: matt121400 on September 09, 2008, 05:05:57 PM

Title: want + instead of @ with username_domain
Post by: matt121400 on September 09, 2008, 05:05:57 PM
for my hostings login name it is username+myurl.com the @ is replaced with a + for the username and when i tried to edit $rcmail_config['username_domain'] it looked like this username@+myurl.com when all i want is username+myurl.com is there anyway i can do this?
Title: want + instead of @ with username_domain
Post by: JohnDoh on September 11, 2008, 07:06:26 AM
Hi,

I think you need to change @ for + in


if (!empty($config['username_domain']) && !strpos($username, '@')) {
     if (is_array($config['username_domain']) && isset($config['username_domain'][$host]))
        $username .= '@'.$config['username_domain'][$host];
     else if (is_string($config['username_domain']))
        $username .= '@'.$config['username_domain'];
}


in program/include/rcmail.php.