We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c6209 commit c378d9eCopy full SHA for c378d9e
1 file changed
apps/sim/lib/webhooks/polling/imap.ts
@@ -198,6 +198,13 @@ async function updateImapState(
198
mergedUidByMailbox[mailbox] = Math.max(uid, mergedUidByMailbox[mailbox] || 0)
199
}
200
201
+ const prevUidValidity = config.uidValidityByMailbox || {}
202
+ for (const [mailbox, validity] of Object.entries(uidValidityByMailbox)) {
203
+ if (prevUidValidity[mailbox] !== undefined && prevUidValidity[mailbox] !== validity) {
204
+ delete mergedUidByMailbox[mailbox]
205
+ }
206
207
+
208
await updateWebhookProviderConfig(
209
webhookId,
210
{
0 commit comments