Repository navigation
feat: add Email and Microsoft 365 Mail tools for agents to search, read, sort, send and reply, and open attachments with the user's consent - #1035
Merged
Conversation
…ad, sort, send and reply, and open attachments with the user's consent
…d of stripping tags with regular expressions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two new agent tool integrations built from one folder: Email (any mailbox, IMAP and SMTP with a password) and Microsoft 365 Mail (signs in as an Entra ID app registration, the same kind the instance uses for its own mail). Each gives agents 8 tools: list folders, search, read a message, open an attachment, mark, move, send and reply in the same thread.
Why
Agents could not work with mail. With these tools an agent can read and answer a mailbox, and open an attachment once the user agrees.
resolvePublicHostin@repo/net), TLS is checked against the hostname, and STARTTLS is required on other ports. A malformed or unknown server is rejected on save; one on a private network is left toSSRF_ALLOWED_HOSTS.TeamFormSection.How to test
imap.gmail.com), and under Sending the SMTP server. Wrong password orimap.gmail.com:993as the server: saving is refused.IMAP.AccessAsAppandSMTP.SendAsApp, its service principal given FullAccess to the mailbox, SMTP AUTH on for it. The Tenant ID help lists the steps.Checklist
bun run typecheckpassesbun run lintandbun run format:checkpasstidy,code-reviewandsecurity-auditfrom.agents/skills/ran on the new codebun run db:generateand committed.env.exampleREADME.mdordocs/).AGENTS.mdchanged only asdocs/dev/agents-md.mdallowsScreenshots
None yet.