mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
Automatically mark msg as read in Mail module
This commit is contained in:
@@ -278,9 +278,6 @@ static NSString *mailETag = nil;
|
||||
andJSONRepresentation: data];
|
||||
}
|
||||
|
||||
// Mark message as read
|
||||
[co addFlags: @"seen"];
|
||||
|
||||
data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
||||
[self attachmentAttrs], @"attachmentAttrs",
|
||||
[self shouldAskReceipt], @"shouldAskReceipt",
|
||||
@@ -302,6 +299,9 @@ static NSString *mailETag = nil;
|
||||
if ((addresses = [addressFormatter dictionariesForArray: [co replyToEnvelopeAddresses]]))
|
||||
[data setObject: addresses forKey: @"reply-to"];
|
||||
|
||||
// Mark message as read
|
||||
[co addFlags: @"seen"];
|
||||
|
||||
response = [self responseWithStatus: 200
|
||||
andJSONRepresentation: data];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user