We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aed0c96 + 9c9152a commit ec1cf3cCopy full SHA for ec1cf3c
1 file changed
packages/backend/src/services/ingestion-connectors/ImapConnector.ts
@@ -189,7 +189,10 @@ export class ImapConnector implements IEmailConnector {
189
currentMaxUid = lastMessage.uid;
190
}
191
192
- this.newMaxUids[mailboxPath] = currentMaxUid;
+
193
+ // Initialize with last synced UID, not the maximum UID in mailbox
194
+ this.newMaxUids[mailboxPath] = lastUid || 0;
195
196
197
// Only fetch if the mailbox has messages, to avoid errors on empty mailboxes with some IMAP servers.
198
if (mailbox.exists > 0) {
0 commit comments