[SOGo] Problems with virtual users in IMAP web client
Marco Lertora
sogo@opengroupware.org
Thu, 07 Feb 2008 15:01:30 +0100
Ok! below my patch...
in file SoObjects/Mailer/SOGoMailAccount.m
around line: 252
just after: [urlString appendFormat: @"%@/", host];
append:
NSArray *urlArray = [urlString componentsSeparatedByString: @"@"];
NSRange loginRange = {0, [urlArray count] - 1};
NSString *loginString = [[urlArray subarrayWithRange: loginRange]
componentsJoinedByString: @"%40"];
urlString = [[NSMutableString alloc] initWithFormat: @"%@@%@",
loginString, [urlArray objectAtIndex: [urlArray count] - 1]];
as I've already wrote in my previous post this is a dirty workaround
qouting the 1st "@" in "%40" before the sogo connect but I think the
real problem is in SOPE source.
I've tried to get the get the right point where apply the fix but I was
lost in the sourcecode :-) and I needed it working asap.
Let me known
Marco
Sauro Saltini ha scritto:
> I'm not an Obj-C developer too, but I was starting to investigate the
> code as I haven't got any response yet...
> If you've already done this please post the patch... we can try to clean
> it up at the best of our knowledge and submit the results to Wolfgang
> asking him to double-check the work and integrate the code.
> As I can see, you came from Italy too, if so, please send me your
> contact info, this way we can talk directly (in italian) and speed up
> the process.
> Sauro.
>
> Marco Lertora ha scritto:
>> Hi,
>> I had the same problem using cyrus virtual domain with full email
>> user@domain.tld as username.
>>
>> The problem is the one described by Sauro about the mistake parsing
>> imapurl. SOGo try to connect to domain.tld@imaphost and fail.
>>
>> I've wrote a patch to avoid this problem, but I'm not a objective-c
>> developer so my patch is quite dirty.
>>
>> If you are interested I'll post it. Should be fantastic if someone can
>> clear and integrate it into SOGo source..
>>
>> Marco
>>
>>
>> Steven Ingram ha scritto:
>>> Sauro-
>>>
>>> Did you ever receive/find an answer for this? I'm having the same
>>> difficulty. Thunderbird is smart enough to figure it out, but SOGo is
>>> apparently having difficulty. I'm expecting/hoping that there is a
>>> setting for .GNUstepDefaults that will adjust this behavior.
>>>
>>> Steve
>>>
>>> Sauro Saltini wrote:
>>>> Hi, I've installed SOGo with Cyrus IMAP and OpenLDAP whith Cyrus
>>>> virtual domains, this way the IMAP username is the full mail address
>>>> : "user@domain.tld".
>>>>
>>>> I can succesfully login to SOGo with such usernames, but when I try
>>>> to access the webmail interface SOGo can't connect to IMAP server.
>>>>
>>>> Looking at the logs I can see errors related to the processing of
>>>> IMAP4 URL: the hostpart contains invalid characters.
>>>>
>>>> Using "user@domain.tld" as username obiouvsly leads to an imap URL
>>>> like "user@domain.tld@imap.server.com" and probably this URL is
>>>> uncorrectly interpreted as username=user,
>>>> hostname=domain.tld@imap.server.com leading to invalid characters
>>>> (@) in hostname.
>> exactly.
>>>>
>>>> Many thanks in advance for any hints on how to solve this issue.
>>>>
>>>> Sauro Saltini.
>>>>