Skip to content
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

feat: add email thread support - Add threadId and inReplyTo fields to… #12

Merged
merged 1 commit into from
Apr 6, 2025

Conversation

pnyompen
Copy link
Contributor

@pnyompen pnyompen commented Apr 3, 2025

Add Email Thread Support

This PR adds support for email threading functionality to the Gmail MCP Server.

Changes

  • Add threadId and inReplyTo fields to SendEmailSchema
  • Add thread-related email headers (In-Reply-To, References)
  • Enable thread ID specification when sending emails

Implementation Details

  • Added proper type definitions for thread-related requests
  • Updated email message creation to include thread headers
  • Modified message sending logic to handle thread IDs

Testing

Please test the following scenarios:

  1. Sending a new email in a thread
  2. Creating a draft reply in a thread
  3. Verifying thread headers in sent messages

Reference

Implementation based on Gmail API Thread Guide

… SendEmailSchema - Add thread-related email headers - Enable thread ID specification
@GongRzhe GongRzhe merged commit 3db0682 into GongRzhe:main Apr 6, 2025
@GongRzhe
Copy link
Owner

GongRzhe commented Apr 6, 2025

Great work! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants