Skip to content

Add outlook email dump tool - #199

Merged
Guido van Rossum (gvanrossum) merged 8 commits into
microsoft:mainfrom
bmerkle:outlook-exporter
Feb 23, 2026
Merged

Add outlook email dump tool#199
Guido van Rossum (gvanrossum) merged 8 commits into
microsoft:mainfrom
bmerkle:outlook-exporter

Conversation

@bmerkle

Copy link
Copy Markdown
Collaborator
  • implementation of outlook email dump tool
  • it should work similar to gmail dump tool
  • currently tested only with test mail account (specifiy client-id, application-id, tenant-id)
  • added mail-example description
  • renamed gmail folder to mail
  • updated library dependencies

i have not tested this with my company account as API access is restricted there
i have tested it with a dummy subscription in my M365 developer cloud setup and it worked there seamlessly

- it should work similar to gmail dump tool
- currently tested only with test mail account (specifiy client-id, application-id, tenant-id)
- added mail-example description
- renamed gmail folder to mail
- updated library dependencies
CopilotAI review requested due to automatic review settings February 17, 2026 14:08

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Microsoft Outlook email dumping support alongside the existing Gmail dumper, consolidating “mail dump” tooling/docs and updating Python dependencies accordingly.

Changes:

  • Introduces tools/mail/outlook_dump.py to download Outlook/Exchange messages via Microsoft Graph.
  • Adds/moves Gmail dumping script and adds a combined tools/mail/README.md plus a new end-to-end mail workflow doc.
  • Updates dependency lockfile and dev dependency set (adds msgraph-sdk), plus related .gitignore and .env-template updates.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
FileDescription
tools/mail/outlook_dump.pyNew Outlook/Graph-based .eml dump CLI (auth + permissions helpers + download).
tools/mail/gmail_dump.pyGmail .eml dump CLI added under the consolidated tools/mail/ area.
tools/mail/README.mdNew consolidated documentation for mail dump tools (Gmail/Outlook/Mbox).
docs/mail-example.mdNew “download → ingest → query” workflow doc referencing the mail tools.
pyproject.tomlAdds msgraph-sdk to the dev dependency group.
uv.lockLockfile updates reflecting new/updated dependencies.
.gitignoreAdjusts ignored Gmail credential/token paths to tools/mail/.
.env-templateAdds Outlook mail dump environment variable examples.
docs/gmail.mdRemoves the old Gmail-specific doc stub.

Comment threadtools/mail/README.md
Comment threaddocs/mail-example.md
Comment threaddocs/mail-example.md Outdated
Comment threaddocs/mail-example.md
Comment threadtools/mail/outlook_dump.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gvanrossum

Copy link
Copy Markdown
Collaborator

How does this relate to #198? I think I saw stuff there that also appears here???

@bmerkle

Bernhard Merkle (bmerkle) commented Feb 19, 2026

Copy link
Copy Markdown
CollaboratorAuthor

aaaaaarg... Copilot sorry is not very smart sometimes, i requested some changes in #198 and then he simply added the outlook files from #199 into the other branch 🙉

we continue the outlook stuff here and i removed the file in #198

Bernhard Merkle (bmerkle) added a commit to bmerkle/typeagent-py that referenced this pull request Feb 19, 2026
- improve date parsing logic
- add option for output-dir similar to gmail client
- remove outlook-dump.py as this is handeled in microsoft#199 (copilot added the file arbitraritly, grrr.)
- added ms lib dependencies
@gvanrossumGuido van Rossum (gvanrossum) changed the title - implementation of outlook email dump toolAdd outlook email dump toolFeb 21, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gvanrossum
Guido van Rossum (gvanrossum) merged commit c97c1c8 into microsoft:mainFeb 23, 2026
16 checks passed
Sign up for freeto 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.

3 participants

@bmerkle@gvanrossum