Menu

#3 Patch Squirrelmail for use with ispman

open
nobody
None
5
2004-07-08
2004-07-08
No

Hi,

apply this patch and the pref file will generated with the
right email-address at the first login:

--- file_prefs.php.ORG 2004-07-08 18:53:33.845250336
+0200
+++ file_prefs.php 2004-07-08 18:50:31.853917224
+0200
@@ -214,6 +214,13 @@
logout_error( $errString, $errTitle );
exit;
}
+ $user=substr($username,0,strpos($username,"_"));
+ $domain=substr($username,strpos($username,"_")
+1,strrpos($username,"_")-strpos($username,"_")-1);
+ $ext=substr($username,strrpos($username,"_")
+1);
+
+ $handle = fopen($filename, "a");
+ fwrite
($handle, "email_address=$user@$domain.$ext\r\n");
+ fclose($handle);
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.