Use configured contacts address book
All checks were successful
Build And Test / publish (push) Successful in 47s

This commit is contained in:
2026-01-01 15:55:00 -08:00
parent 5a9ef0e48f
commit bd8e1412e4
6 changed files with 39 additions and 33 deletions

View File

@@ -181,15 +181,16 @@ def register_email_tools(mcp: FastMCP, service: EmailService):
reply_all: Whether to include original recipients when replying (default: False)
"""
result = service.save_draft(
to,
subject,
body,
cc,
bcc,
mailbox,
in_reply_to_email_id,
in_reply_to_mailbox,
reply_all,
to=to,
subject=subject,
body=body,
cc=cc,
bcc=bcc,
html_body=None,
mailbox=mailbox,
in_reply_to_email_id=in_reply_to_email_id,
in_reply_to_mailbox=in_reply_to_mailbox,
reply_all=reply_all,
)
return result.model_dump()
@@ -223,16 +224,17 @@ def register_email_tools(mcp: FastMCP, service: EmailService):
reply_all: Whether to include original recipients when replying (default: False)
"""
result = service.update_draft(
email_id,
mailbox,
to,
subject,
body,
cc,
bcc,
in_reply_to_email_id,
in_reply_to_mailbox,
reply_all,
email_id=email_id,
mailbox=mailbox,
to=to,
subject=subject,
body=body,
cc=cc,
bcc=bcc,
html_body=None,
in_reply_to_email_id=in_reply_to_email_id,
in_reply_to_mailbox=in_reply_to_mailbox,
reply_all=reply_all,
)
return result.model_dump()