Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 25th March 2007, 12:59
edge edge is offline
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts

Originally Posted by Hans
When a user login with the email address for the first time, within RoundCubes the identities section, the e-mail address will be displayed like: username@www.domain.tld. As we want the email address to be displayed like username@domain.tld do the following:

Change the line 637 within /program/incluse/main.inc file from:

637 $line = trim($line);


637 $line = trim(str_replace("www.", "", $line));
To keep everything nice in one place instead of doing the above hack you could also do this:

Find in /program/included/main.inc (arround line 588):

PHP Code:
    // also create new identity records
$DB->query("INSERT INTO ".get_table_name('identities')."
                (user_id, del, standard, name, email)
                VALUES (?, 0, 1, ?, ?)"
Replace it with:

PHP Code:
    // also create new identity records
$DB->query("INSERT INTO ".get_table_name('identities')."
                (user_id, del, standard, name, email)
                VALUES (?, 0, 1, ?, ?)"
$user_name preg_replace("/\\w[^\\]]*\\_/"""$user_name),
$user_email str_replace("www."""$user_email)); 
$user_name = preg_replace("/\\w[^\\]]*\\_/", "", $user_name)
will rename "web1_info" to "info"

$user_email = str_replace("www.", "", $user_email)
will rename "www.domain.tld" to "domain.tld"

Putting this all together will endup like "info@domain.tld" instead of web1_info@www.domain.tld
Never execute code written on a Friday or a Monday.

Last edited by edge; 25th March 2007 at 13:06.
Reply With Quote
Sponsored Links
Old 26th March 2007, 01:19
Hagforce Hagforce is offline
Senior Member
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post

Anybody know if there is a way to add more languages to the spell check?
Reply With Quote


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uninstall Round Cube that ISPConfig is using ProgressiveBastion Installation/Configuration 7 21st March 2012 17:46
RoundCube Webmail On Your ISPConfig Server Within 10 Easy Steps SoMBS HOWTO-Related Questions 17 25th November 2010 14:19
Webmail on port 80, ISPConfig on port 81 wonka Installation/Configuration 5 3rd March 2007 16:46
Problems with Webmail, ISPConfig, and Debian Sarge Spudchat Installation/Configuration 13 20th September 2006 01:54
IP ISPConfig web + Webmail - (Uebimiau) "url" Felipe Installation/Configuration 7 24th August 2006 11:06

All times are GMT +2. The time now is 07:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.