Skip to content

Commit

Permalink
fix(mail): replace STATUS by LIST command when copying/moving msgs
Browse files Browse the repository at this point in the history
Fixes #4983
  • Loading branch information
cgx committed Sep 10, 2021
1 parent 08581ee commit 0765c72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SoObjects/Mailer/SOGoMailFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,8 @@ - (WOResponse *) moveUIDs: (NSArray *) uids
if ([destinationAccountName isEqualToString: currentAccountName])
{
// We make sure the destination IMAP folder exist, if not, we create it.
result = [[client status: imapDestinationFolder
flags: [NSArray arrayWithObject: @"UIDVALIDITY"]]
objectForKey: @"result"];
if (![result boolValue])
result = [[[client list: @"" pattern: imapDestinationFolder] objectForKey: @"list"] objectForKey: imapDestinationFolder];
if (!result)
result = [[self imap4Connection] createMailbox: imapDestinationFolder
atURL: [[self mailAccountFolder] imap4URL]];
if (!result || [result boolValue])
Expand Down

0 comments on commit 0765c72

Please sign in to comment.