On Tue, 2004-03-30 at 10:29 -0800, p dont think wrote: > > well, what I'd like to have (or to code) is quite simple: if the > > user name is "[EMAIL PROTECTED]", SM should connect to "domain1.com:143", > > if the login is "[EMAIL PROTECTED]", it should connect to > > "anotherdomain.com:143". (the short names are defined in dns, but > > as a variant, we could take "mail." or "imap." + part after the "@"). > > > > With NO lists of domains, NO specific setup for each domain (it would > > be for hunderds of domains), NO pull down menu, and NO exception : > > just KiSS :) > > > > Do you know if that is already possible now with one of these plugins? > > well, if you don't want to have to add each domain separately, then you'll > have to tweak things yourself. changing vlogin might be the easiest place > to start. shouldn't be very hard...
Ok, just spent 2 hours on it, and it's now working :-) I first tried via plugins, but it didn't worked, because there are no hooks at the required places (sqlimap_login, etc.), so I patched the code directely: not very difficult, but The patch is available on the tracker under: http://sourceforge.net/tracker/index.php?func=detail&aid=926196&group_id=311&atid=300311 --------------- Added 'dynamic server' feature, which allow user logging in to hosts based on their username ('[EMAIL PROTECTED]' -> mail.example.com:143'). Also working for SMTP. Patch based on 1.5 CVS on 30.March 2004, modifying following files: - ChangeLog - config/conf.pl - config/config_default.php - functions/imap_general.php - src/compose.php - src/read_body.php + functions/dynamic_server.php (new file) -------------- Feedback is very welcome! Now the question is if it will find a way into the CVS... Or if the whole thing should be solved using another way (plugins?). regards, Olivier / swix on SF -- _______________________________________________________ Olivier M�ller - PGP key ID: 0x0E84D2EA - Switzerland E-Mail: http://omx.ch/mail/ - AIM/iChat: swix3k ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
