Skip to content

Outlook Mail Access Tool - #998

Closed
peerschuett wants to merge 4 commits into
MindWorkAI:mainfrom
peerschuett:outlook-search-tool
Closed

peerschuett wants to merge 4 commits into
MindWorkAI:mainfrom
peerschuett:outlook-search-tool

Conversation

@peerschuett

Copy link
Copy Markdown
Contributor

Adds a read-only Outlook Mail tool for Windows. With a configured company Exchange endpoint, an eligible AI provider can search the signed-in user’s primary mailbox, show the newest matches, and read a message returned by a search.

The tool cannot send mail, access calendars or shared mailboxes, or read attachments. It requires a High-confidence provider or one trusted by the organization; searches may return partial results when limits are reached.

I only implemented Windows, because I do not have any way to test other OS.

@peerschuett peerschuett self-assigned this Sep 23, 2026
@peerschuett
peerschuett requested a review from a team as a code owner September 23, 2026 13:12
@SommerEngineering

Copy link
Copy Markdown
Member

Thank you, Peer, for this PR and for the work you put into it. It showed how useful it is when the AI can work with your mails. I'm closing it in favor of #1022, which takes a different approach:

  • EWS is going away. Microsoft blocks EWS in Exchange Online starting October 1, 2026, and switches it off on April 1, 2027. A mail integration built on EWS would soon stop working for most Microsoft 365 users.
  • Windows only. AI Studio runs on Windows, macOS, and Linux, and mail access should too.
  • Live search is too slow. Asking the Exchange server for every question takes time, and it offers neither full-text ranking (BM25) nor semantic search.

#1022 turns each mailbox into a local, indexed data source instead:

  • It connects via IMAP, so it works on all platforms with Gmail, GMX, WEB.DE, Posteo, iCloud, on-premises Exchange with IMAP enabled, and others.
  • AI Studio syncs each mailbox every 16 minutes and searches it locally: by keyword, by meaning, and by metadata such as sender, date, flags, or folder.
  • The AI gets read-only tools to search, read, and count mails.
  • Each mailbox requires a provider confidence level and limits where a chat may send data after reading mails. All mail content passes through the prompt injection filter.
  • A rejected sign-in is remembered, so AI Studio never locks your account by retrying a password that has changed.

Later PRs add sign-in with a Microsoft account (Microsoft 365, Outlook.com) via OAuth2, a mail viewer, a trust check for mails, tools to mark, move, and draft mails, and replies from the e-mail assistant.

Thanks again!

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