From b40ff948ca93cb6ea2aab1ad9763af34059e2998 Mon Sep 17 00:00:00 2001 From: Halla Moore Date: Fri, 13 Jan 2017 14:55:07 -0800 Subject: [PATCH] [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 --- .../src/local-sync-worker/syncback-tasks/task-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/local-sync/src/local-sync-worker/syncback-tasks/task-helpers.js b/packages/local-sync/src/local-sync-worker/syncback-tasks/task-helpers.js index d3435e4b6..e50fcc377 100644 --- a/packages/local-sync/src/local-sync-worker/syncback-tasks/task-helpers.js +++ b/packages/local-sync/src/local-sync-worker/syncback-tasks/task-helpers.js @@ -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