fix: Fix and update outlook thread detection and scheduled action outlook compatibility#590
Conversation
|
@edulelis is attempting to deploy a commit to the Inbox Zero Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes refactor how the code determines if an email is a reply within a thread. The boolean property Changes
Sequence Diagram(s)sequenceDiagram
participant API as API Route
participant Provider as EmailProvider
participant Executor as executeScheduledAction
participant Util as isReplyInThread
API->>Provider: createEmailProvider(account)
API->>Executor: executeScheduledAction(scheduledAction, Provider)
Executor->>Provider: getMessage(...)
Executor->>Util: isReplyInThread(messageId, threadId, conversationIndex)
Util-->>Executor: reply status (boolean)
Executor-->>API: action result
Estimated code review effort3 (~45 minutes) Possibly related PRs
Poem
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Summary by CodeRabbit
New Features
conversationIndexproperty in email message data, enabling more accurate thread and reply detection.Refactor
isReplyInThreadboolean with a more flexible approach usingconversationIndexfor determining reply status.Bug Fixes
Chores