[local-sync] Make sure we're saving sent messages with 'SEEN' flag

Summary: We did this for gmail, but not for other providers.

Test Plan: tested locally

Reviewers: juan, spang

Reviewed By: spang

Differential Revision: https://phab.nylas.com/D3665
This commit is contained in:
Halla Moore 2017-01-13 14:55:07 -08:00
parent ffbdfb7fd2
commit b40ff948ca

View file

@ -69,7 +69,7 @@ const TaskHelpers = {
if (!sentFolder) { throw new APIError('Could not save message to sent folder.') }
const box = await imap.openBox(sentFolder.name);
return box.append(rawMime);
return box.append(rawMime, {flags: 'SEEN'});
}
// Gmail, we need to add the message to all mail and add the sent label