mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
[local-sync]: Don't create or sync \NonExistent or \NoSelect folders
This commit is contained in:
parent
f1491fa4cc
commit
b36f61812d
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue