diff --git a/src/servers/gmail/main.py b/src/servers/gmail/main.py index db1b663..1e219f6 100644 --- a/src/servers/gmail/main.py +++ b/src/servers/gmail/main.py @@ -591,8 +591,11 @@ async def handle_call_tool( is_unread = "UNREAD" in labels # Build email summary + thread_id = msg.get("threadId", "") + email_summary = ( f"ID: {message['id']}\n" + f"Thread ID: {thread_id}\n" f"From: {sender}\n" f"Subject: {subject}\n" f"Date: {date}\n" diff --git a/src/servers/outlook/main.py b/src/servers/outlook/main.py index 907c25a..5228507 100644 --- a/src/servers/outlook/main.py +++ b/src/servers/outlook/main.py @@ -399,7 +399,7 @@ async def handle_call_tool( # Build request parameters params = { - "$select": "id,subject,from,toRecipients,ccRecipients,receivedDateTime,bodyPreview,hasAttachments", + "$select": "id,subject,from,toRecipients,ccRecipients,receivedDateTime,bodyPreview,hasAttachments,conversationId", "$top": count, "$orderby": "receivedDateTime desc", } @@ -525,6 +525,7 @@ async def handle_call_tool( email_info = { "id": email.get("id"), + "conversationId": email.get("conversationId", ""), "subject": subject, "from": {"name": from_name, "email": from_email}, "to": to_recipients,