From: p d. t. <pdo...@an...> - 2004-03-28 18:13:02
|
you might have found a bug in vlogin, but i am not currently in a positio= n to look at it. a better alternative might be to set the global $numberOfDotSections to 3 (not just in that one domain) and catch the other domains where you only need 2 parts by using the exclude sections array (I forget the exact name) by including "www". That might not work due to processing order, but that could be fixed easily enough. play around some more with your settings (global and per-domain) and see if yo= u can get it to work. i can help you when i am back in the groove, but i a= m currently on vacation.... - paul > Hi, > > I got my three part name figured out. > > 'mycomp' =3D> array( > 'org_name' =3D> MyCompany Inc,', > 'org_logo' =3D> '../images/###VIRTUAL_DOMAIN###_logo.gif', > 'org_title' =3D> '(isset($_SESSION["username"]) ? $_SESSION > ["username"] . " - Mail" : "Mail")', > 'numberOfDotSections' =3D> 3, > 'removeFromFront' =3D> 0, > ), > > Now the problem is "###VIRTUAL_DOMAIN###". It is taking only the last t= wo > part (ie, if I have the three part name as com1.mycomp.com, the > virtual_domain is set to "mycomp.com"). But I want it to me > com1.mycomp.com, > com2.mydomian.com etc, so that I can have different logos for each of t= he > com1, com2 etc. > > http://com1.mycomp.com/mail > http://com2.mycomp.com/mail > > Also, Thanks Tomas for your response. I will look at the db stuff. > > Regards, > Prince. > > On Fri, 26 Mar 2004 20:49:19 -0800, prince wrote >> Dear Group, >> >> I have squirrelmail (vlogin) + exim + courier-imap + mySQL installed >> on my system. I have many virtual domains. Currently all are in the >> form of *.mydomain.com >> >> I want to suffix the entire *.mydomain.com to the user name, not >> just the domain name. Here the last two part is always >> "mydomain.com" [ex, I will have virual domains com1.mycomp.com, >> com2.mycomp.com etc and I want the userid to be passed as >> us...@co... or us...@co... etc, but not >> us...@my...]. How do I do this? >> >> Also, I will have some other virtual domains with names such as >> www.domain1.com, www.domain2.com etc. In this case I will have the >> last two parts (ie domain name) always different. Here I will have >> to suffix just the last two part (ie domain name) to the user id. >> This one is working fine with vlogin. >> >> Additional Ques: Is there a plugin available for storing the user >> preferences etc in a mySQL table? >> >> Summary: >> =3D=3D=3D=3D=3D=3D=3D=3D >> >> If the virtual domain ends with "mycomp.com", then I have to suffix >> the entire three part to the userid and the welcome message should >> say welcome "firstpart" >> >> ex. user1 login in from com1.mycomp.com will be passed as >> us...@co... and user1 login in from com2.mycomp.com will >> be passed as us...@co... and the welcome message should be >> like "Welcome Com1", "Welcome Com2" >> >> All other cases (ie, they don't have "mydomain.com" as the domain >> name, should have to be handled normally. >> >> ex. user1 login in from mail.domain1.com will be passed as >> us...@do... and user1 from mail.domain2.com will be passed as > us...@do... >> >> Thanks, >> Prince. |