Skip to content

Commit

Permalink
fix(imap): use proxy authentication to detect IMAP delimiter
Browse files Browse the repository at this point in the history
Fixes #5479
  • Loading branch information
cgx committed Feb 17, 2022
1 parent 557ff59 commit a98b404
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions SoObjects/SOGo/SOGoSieveManager.m
Expand Up @@ -897,17 +897,18 @@ - (NSException *) updateFiltersForAccount: (SOGoMailAccount *) theAccount
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"];
Expand Down

0 comments on commit a98b404

Please sign in to comment.