-
Notifications
You must be signed in to change notification settings - Fork 5.5k
MS Outlook - include attachments in new email trigger #18291
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
Caution Review failedThe pull request is closed. WalkthroughVersion bumps across Outlook components. Removed the Find Email action’s public search prop and its use in Graph query. Centralized attachment retrieval into a new common method. New Email source now fetches and attaches message attachments when present. Removed duplicated attachment helper from New Attachment Received source. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User as Trigger (Outlook webhook)
participant Src as New Email Source
participant Common as Common Methods
participant MS as Microsoft Outlook API
User->>Src: New email event payload (item)
Src->>MS: GET message details (item.id)
MS-->>Src: Message data (hasAttachments flag)
alt item.hasAttachments == true
Src->>Common: getMessageAttachments(item)
Common->>MS: listAttachments(messageId=item.id)
MS-->>Common: Attachments[]
Common-->>Src: Enriched Attachments[] (with message metadata)
Src->>Src: item.attachments = Attachments[]
else No attachments
Src->>Src: Skip attachment retrieval
end
Src-->>User: Emit event (message [+ attachments])
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (5)
✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
WHY
Summary by CodeRabbit
New Features
Refactor
Chores