-
Notifications
You must be signed in to change notification settings - Fork 5.5k
IMAP - new-email source bug fix #18616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughUpdates the IMAP component version and dependencies. Adjusts the New Email source logic to gate staleness checks and historical message processing behind a truthy mailbox message count. No exported API signatures changed beyond the version field. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as Workflow Runtime
participant Src as IMAP New Email Source
participant IMAP as IMAP Server
User->>Src: Run source
Src->>IMAP: Connect and open mailbox
IMAP-->>Src: box (incl. messages.total, uidnext, etc.)
alt messages.total is falsy (0/undefined)
note over Src: New/changed: Skip staleness and history
Src-->>User: Exit without historical fetch or new message checks
else messages.total is truthy
note over Src: New/changed: Guarded logic proceeds
Src->>Src: hasNewMessages(box): check box.messages.total && staleness
opt Historical backfill
Src->>IMAP: Fetch historical messages
IMAP-->>Src: Message list
Src-->>User: Emit historical events
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @michelle0927, LGTM! Ready for QA!
Resolves #18604
Summary by CodeRabbit
Bug Fixes
Chores