From: Tom C. <to...@to...> - 2003-03-15 23:12:53
|
On my system, users sometimes use username%domain.com instead of use...@do... to log in. This is probably because we use vpopmail to support virtual domains and recommend that users set their POP/IMAP username to username%domain.com since some email clients don't like use...@do.... If the user isn't consistent with the way they log in, SquirrelMail will maintain two separate pref/abook/sig files. This short patch will covert the % to @. --- squirrelmail-1.2.11/src/redirect.php Thu Dec 19 08:52:18 2002 +++ /var/www/html/squirrelmail/src/redirect.php Fri Mar 14 17:06:31 2003 @@ -91,6 +91,9 @@ /* remove redundant spaces */ $login_username = trim($login_username); + /* convert '%' to '@' */ + $login_username = str_replace('%', '@', $login_username); + if ($force_username_lowercase) { $login_username = strtolower($login_username); } Combined with the configuration option of converting logins to lowercase, I've been able to eliminate multiple pref/abook/sig files for each user account. How do I submit this to get it into the next release? I'm a qmailadmin developer, and I'm thinking about digging into SquirrelMail as well, but I don't know the SM community that well yet. -- Tom Collins to...@to... |