[SOGo] Problems with virtual users in IMAP web client
Sauro Saltini
sogo@opengroupware.org
Thu, 07 Feb 2008 16:44:32 +0100
Hi Wolfgang, I've tried to investigate the problem a little more and as
I can see the username / host splitting part is done inside gnustep-base
by NSURL functions.
My first approach (splitting on the last "@") could be done here by
replacing in NSURL.m (around line 776) :
....
/*
* Parser username:password part
*/
ptr = strchr(start, '@');
....
with
ptr = strrchr(start, '@');
This way the "@" used for splitting is the last one... but... the "@"
caracter itself is not permitted by NSURL.m "legal" function even in
username part.
So, I can think a better approach (with some cleanups) is the one
proposed by Marco (replacing "@" with its "URL" equivalent "%40"), which
can be done directly in SOGo sources.
We are all waiting for your solution....
Many thanks in advance.
Sauro.
Wolfgang Sourdeau ha scritto:
> Hi Steve and Sauro,
>
>
> Sorry I didn't answer your posts, I think I just forgot about them.
> Sauro your approach is the good one. Actually I will implement it today in our development copy, which will probably be commited to SVN afterwards.
>