From 090c1ea9e789f1d70f28940e9adfb9a819a84517 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 25 Apr 2022 10:26:52 -0400 Subject: [PATCH] fix(mail): mark deleted messages as seen The STATUS command will now report the proper unseen messages count. --- SoObjects/Mailer/SOGoMailFolder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index 9d0250396..b798f337b 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -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])