>> > 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)
There should (is) not be a need to modify so many files. Just have to be
creative with your hook usage.
> 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?).
It won't make its way into CVS (thanks, however, for your earnest
contribution!), since this is a non-standard usage of SM. It is best kept
as a plugin. If you look more at vlogin, you'll see that it *CAN* do what
you need already. The only thing that it couldn't satisfy for you was the
need to automate the extraction of the server name from the username.
This is best accomplished as a change to that plugin, and can be done in
much less time.
Cheers,
Paul
-------------------------------------------------------
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_id70&alloc_id638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users