fix(mail): mark deleted messages as seen

The STATUS command will now report the proper unseen messages count.
This commit is contained in:
Francis Lachapelle
2022-04-25 10:28:00 -04:00
parent 73954ef63e
commit 090c1ea9e7
+1 -1
View File
@@ -496,7 +496,7 @@ static NSInteger _compareFetchResultsByUID (id entry1, id entry2, NSArray *uids)
client = [[self imap4Connection] client];
[imap4 selectFolder: [self imap4URL]];
}
result = [[client storeFlags: [NSArray arrayWithObject: @"Deleted"]
result = [[client storeFlags: [NSArray arrayWithObjects: @"Deleted", @"seen", nil]
forUIDs: uids addOrRemove: YES]
objectForKey: @"result"];
if ([result boolValue])