Roundcube Community Forum

 

want + instead of @ with username_domain

Started by matt121400, September 09, 2008, 05:05:57 PM

Previous topic - Next topic

matt121400

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?

JohnDoh

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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...