mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-25 16:33:22 +00:00
fix(imap): use proxy authentication to detect IMAP delimiter
Fixes #5479
This commit is contained in:
@@ -897,17 +897,18 @@ static NSString *sieveScriptName = @"sogo";
|
||||
if (thePassword)
|
||||
{
|
||||
imapClient = [NGImap4Client clientWithURL: [theAccount imap4URL]];
|
||||
[imapClient login: theUsername password: thePassword];
|
||||
[imapClient authenticate: [user login] authname: theUsername password: thePassword];
|
||||
}
|
||||
else
|
||||
imapClient = [[theAccount imap4Connection] client];
|
||||
|
||||
delimiter = [imapClient delimiter];
|
||||
|
||||
if (!delimiter)
|
||||
[imapClient list: @"INBOX" pattern: @""];
|
||||
|
||||
delimiter = [imapClient delimiter];
|
||||
if (!delimiter && [imapClient isConnected])
|
||||
{
|
||||
[imapClient list: @"INBOX" pattern: @""];
|
||||
delimiter = [imapClient delimiter];
|
||||
}
|
||||
|
||||
if (!delimiter)
|
||||
delimiter = [dd stringForKey: @"NGImap4ConnectionStringSeparator"];
|
||||
|
||||
Reference in New Issue
Block a user