[local-sync]: Don't create or sync \NonExistent or \NoSelect folders

This commit is contained in:
Juan Tejada 2016-12-02 12:14:09 -08:00
parent f1491fa4cc
commit b36f61812d
2 changed files with 6 additions and 2 deletions

View file

@ -89,6 +89,11 @@ class FetchFolderList {
});
}
const lowerCaseAttrs = box.attribs.map(attr => attr.toLowerCase())
if (lowerCaseAttrs.includes('\\noselect') || lowerCaseAttrs.includes('\\nonexistent')) {
continue;
}
let category = categories.find((cat) => cat.name === boxName);
if (!category) {
const role = this._roleByAttr(box);

View file

@ -261,10 +261,9 @@ class FetchMessagesInFolder {
}, `FetchMessagesInFolder: Queued new message for processing`)
}
} catch (err) {
this._logger.error({
this._logger.error(err, {
imapMessage,
desiredParts,
underlying: err.toString(),
}, `FetchMessagesInFolder: Could not build message`)
}
}