From e7de61b56a24882fd311419330af68791d9f897a Mon Sep 17 00:00:00 2001 From: Jackie Luo Date: Fri, 6 Jan 2017 16:53:16 -0800 Subject: [PATCH] [local-sync] Designate role for archive folder --- .../local-sync/src/local-sync-worker/imap/fetch-folder-list.js | 2 +- packages/local-sync/src/local-sync-worker/sync-utils.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/local-sync/src/local-sync-worker/imap/fetch-folder-list.js b/packages/local-sync/src/local-sync-worker/imap/fetch-folder-list.js index fd5731e5e..337b9a007 100644 --- a/packages/local-sync/src/local-sync-worker/imap/fetch-folder-list.js +++ b/packages/local-sync/src/local-sync-worker/imap/fetch-folder-list.js @@ -2,7 +2,7 @@ const {Provider, PromiseUtils} = require('isomorphic-core'); const SyncOperation = require('../sync-operation') const {localizedCategoryNames} = require('../sync-utils') -const BASE_ROLES = ['inbox', 'sent', 'trash', 'spam']; +const BASE_ROLES = ['inbox', 'archive', 'sent', 'trash', 'spam']; const GMAIL_ROLES_WITH_FOLDERS = ['all', 'trash', 'spam']; class FetchFolderList extends SyncOperation { diff --git a/packages/local-sync/src/local-sync-worker/sync-utils.js b/packages/local-sync/src/local-sync-worker/sync-utils.js index cb50d83c2..ebe0426d6 100644 --- a/packages/local-sync/src/local-sync-worker/sync-utils.js +++ b/packages/local-sync/src/local-sync-worker/sync-utils.js @@ -33,5 +33,8 @@ module.exports = { 'inbox.papierkorb', 'odeslan\xc3\xa9', 'mail/sent-mail', 'ko\xc5\xa1', 'outbox', 'outbox', 'inbox.sentmail', 'gesendet', 'ko\xc5\xa1/sent items', 'gesendete elemente'], + archive: [ + 'archive', + ], }, }