fix(sieveà: Sieve use the correct imap auth mechanism

This commit is contained in:
Hivert Quentin
2025-07-24 15:03:30 +02:00
parent 42f620e562
commit c8dd5535b3
2 changed files with 3 additions and 2 deletions

View File

@@ -790,10 +790,10 @@ static NSString *sieveScriptName = @"sogo";
imapAuthMech = nil;
if([sd doesLoginTypeByDomain])
{
r = [theUsername rangeOfString: @"@"];
r = [authname rangeOfString: @"@"];
if (r.location != NSNotFound)
{
userDomain = [theUsername substringFromIndex: r.location+1];
userDomain = [authname substringFromIndex: r.location+1];
imapAuthMech = [sd getImapAuthMechForDomain: userDomain];
}
}