Use configured contacts address book
All checks were successful
Build And Test / publish (push) Successful in 47s
All checks were successful
Build And Test / publish (push) Successful in 47s
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user