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', + ], }, }