Skip to content

Comments

- implementation of outlook email dump tool#199

Open
bmerkle wants to merge 5 commits intomicrosoft:mainfrom
bmerkle:outlook-exporter
Open

- implementation of outlook email dump tool#199
bmerkle wants to merge 5 commits intomicrosoft:mainfrom
bmerkle:outlook-exporter

Conversation

@bmerkle
Copy link
Contributor

@bmerkle bmerkle commented Feb 17, 2026

  • 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
Copilot AI review requested due to automatic review settings February 17, 2026 14:08
Copy link

Copilot AI left a comment

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
File Description
tools/mail/outlook_dump.py New Outlook/Graph-based .eml dump CLI (auth + permissions helpers + download).
tools/mail/gmail_dump.py Gmail .eml dump CLI added under the consolidated tools/mail/ area.
tools/mail/README.md New consolidated documentation for mail dump tools (Gmail/Outlook/Mbox).
docs/mail-example.md New “download → ingest → query” workflow doc referencing the mail tools.
pyproject.toml Adds msgraph-sdk to the dev dependency group.
uv.lock Lockfile updates reflecting new/updated dependencies.
.gitignore Adjusts ignored Gmail credential/token paths to tools/mail/.
.env-template Adds Outlook mail dump environment variable examples.
docs/gmail.md Removes the old Gmail-specific doc stub.

bmerkle and others added 3 commits February 17, 2026 15:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gvanrossum
Copy link
Collaborator

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

@bmerkle
Copy link
Contributor Author

bmerkle commented Feb 19, 2026

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

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.)
@bmerkle bmerkle mentioned this pull request Feb 19, 2026
- added ms lib dependencies
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