Author Topic: want + instead of @ with username_domain  (Read 2626 times)

Offline matt121400

  • Newbie
  • *
  • Posts: 1
want + instead of @ with username_domain
« 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?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
want + instead of @ with username_domain
« Reply #1 on: September 11, 2008, 07:06:26 AM »
Hi,

I think you need to change @ for + in

Code: [Select]

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ā€¦