mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
[local-sync] fix lowerbound error where uid set could be zero
This commit is contained in:
parent
a7bd1d66b7
commit
fa6aec3cee
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ class FetchMessagesInFolderIMAP extends SyncTask {
|
|||
// account connection.
|
||||
// TODO: add support for Mail2World bug which we support in Python SE
|
||||
// https://www.limilabs.com/blog/mail2world-imap-search-all-bug
|
||||
const uids = await this._box.search([['UID', `1:${lowerbound - 1}`]]);
|
||||
const uids = await this._box.search([['UID', `1:${lowerbound}`]]);
|
||||
let boxMinUid = uids[0] || 1;
|
||||
// Using old-school min because uids may be an array of a million
|
||||
// items. Math.min can't take that many arguments
|
||||
|
|
Loading…
Reference in a new issue