AI Mail Router
Introduction
A Windows desktop app that runs in the background, sorts incoming Outlook mail, matches each email to the right contract and forwards it to the responsible project manager. The project is under NDA, so it is described only in general terms.
Goal of the project
Save the manual forwarding of dozens of emails a day and make sure no contract-related message gets lost.
My approach
The app reads mail through the Microsoft Graph API. It first looks for the contract number with rules (regex), and only when that isn't enough does OpenAI classification decide, using a list of contracts from Excel. The message is then labelled and forwarded according to a contract → manager mapping. Settings live in config files and the app ships as a standalone .exe.
Result
Email sorts itself and managers receive only the mail for their contracts. The code is covered by tests and lint (pytest, ruff).