# bkaankose/wino-mail architecture

> Architecture diagram of the GitHub repository bkaankose/wino-mail, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bkaankose/wino-mail
- Repository: https://github.com/bkaankose/wino-mail

## Overview

Wino Mail is a native mail, calendar, people, and task client. The principal user workflow is to use the application to access mailbox content and compose or read messages, with provider synchronization and local data supporting those workflows. The README also documents account authentication, offline and local-search support, notifications, file and protocol activation, and WebView2-based mail editing. The graph preserves those capabilities, but the supplied excerpts do not show most runtime wiring; documented product-level relationships are cited to the README, and no unsampled call paths are inferred.

Main entry points: [`src/Wino.Mail.WinUI/App.xaml.cs`](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.WinUI/App.xaml.cs) (Windows app), [`src/Wino.Core/Services/SynchronizationManager.cs`](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Services/SynchronizationManager.cs) (Synchronization manager), [`src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs`](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs) (Mail list UI), [`src/Wino.Authentication/OutlookAuthenticator.cs`](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Authentication/OutlookAuthenticator.cs) (Provider authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application experience"]
  node_windows["Windows app<br/>[App.xaml.cs]"]
  node_macshell["macOS shell"]
  node_calendar["Calendar workflows"]
  node_contacts["People and contacts<br/>[AccountContact.cs]"]
  node_tasks["To Do data<br/>[AccountTask.cs]"]
  node_fileactivation["File and protocol import"]
end

subgraph group_mail["Mail and editing"]
  node_mailui["Mail list UI"]
  node_editor["Mail editor<br/>[editor.js]"]
  node_reader["Mail reader<br/>[reader.js]"]
end

subgraph group_accounts["Accounts and sync"]
  node_auth["Provider authentication"]
  node_syncmanager["Synchronization manager"]
  node_carddav["CardDAV sync"]
  node_notifications["Toast notifications"]
end

subgraph group_domain["Shared domain data"]
  node_maildata["Mail records<br/>[MailCopy.cs]"]
  node_accountdata["Account records<br/>[MailAccount.cs]"]
  node_customserver["Custom server settings"]
  node_localfeatures["Offline and local search"]
end

node_user(("Mail user"))
node_mailproviders{{"Mail providers"}}
node_calendarproviders{{"Calendar providers"}}
node_localdata[("Local data")]

node_user -->|"uses"| node_windows
node_user -.->|"uses"| node_macshell
node_windows -->|"offers mail"| node_mailui
node_windows -->|"offers calendar"| node_calendar
node_windows -->|"offers people"| node_contacts
node_windows -->|"offers tasks"| node_tasks
node_mailui -->|"reads mail"| node_reader
node_mailui -->|"composes mail"| node_editor
node_mailproviders -->|"authenticates"| node_auth
node_auth -.->|"configures accounts"| node_accountdata
node_syncmanager -->|"synchronizes mail"| node_mailproviders
node_syncmanager -->|"synchronizes calendars"| node_calendarproviders
node_syncmanager -.->|"runs contact sync"| node_carddav
node_carddav -->|"updates contacts"| node_contacts
node_syncmanager -->|"supports notifications"| node_notifications
node_localfeatures -->|"supports offline use"| node_localdata
node_fileactivation -.->|"activates app"| node_windows
node_mailui -.->|"displays messages"| node_maildata
node_maildata -.->|"stored locally"| node_localdata
node_customserver -.->|"configures servers"| node_mailproviders

click node_windows "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.WinUI/App.xaml.cs"
click node_macshell "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.MacOS/Views/WinoAppShellViewController.cs"
click node_calendar "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Calendar.ViewModels/CalendarPageViewModel.cs"
click node_contacts "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/AccountContact.cs"
click node_tasks "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/AccountTask.cs"
click node_mailui "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs"
click node_editor "https://github.com/bkaankose/wino-mail/blob/main/controls/Wino.Editor.Core/Editor/editor.js"
click node_reader "https://github.com/bkaankose/wino-mail/blob/main/controls/Wino.Editor.Core/Editor/reader.js"
click node_maildata "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Mail/MailCopy.cs"
click node_accountdata "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/MailAccount.cs"
click node_customserver "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/CustomServerInformation.cs"
click node_auth "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Authentication/OutlookAuthenticator.cs"
click node_syncmanager "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Services/SynchronizationManager.cs"
click node_carddav "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Synchronizers/CardDav/CardDavSynchronizationEngine.cs"
click node_localfeatures "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Models/SemanticIndexing/SemanticIndexCoverageRuleStorage.cs"
click node_notifications "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Services/SynchronizationManager.cs"
click node_fileactivation "https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Services/Activation/ActivationFileImportService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_windows,node_macshell,node_calendar,node_contacts,node_tasks,node_fileactivation,node_user toneBlue
class node_mailui,node_editor,node_reader,node_localdata toneAmber
class node_auth,node_syncmanager,node_carddav,node_notifications toneMint
class node_maildata,node_accountdata,node_customserver,node_localfeatures toneRose
class node_mailproviders,node_calendarproviders toneIndigo
```

## Components

### Application experience

- [Windows app](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.WinUI/App.xaml.cs): `src/Wino.Mail.WinUI/App.xaml.cs`
- [macOS shell](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.MacOS/Views/WinoAppShellViewController.cs): `src/Wino.Mail.MacOS/Views/WinoAppShellViewController.cs`
- [Calendar workflows](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Calendar.ViewModels/CalendarPageViewModel.cs): `src/Wino.Calendar.ViewModels/CalendarPageViewModel.cs`
- [People and contacts](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/AccountContact.cs): `src/Wino.Core.Domain/Entities/Shared/AccountContact.cs`
- [To Do data](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/AccountTask.cs): `src/Wino.Core.Domain/Entities/Shared/AccountTask.cs`
- [File and protocol import](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Services/Activation/ActivationFileImportService.cs): `src/Wino.Services/Activation/ActivationFileImportService.cs`

### Mail and editing

- [Mail list UI](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs): `src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs`
- [Mail editor](https://github.com/bkaankose/wino-mail/blob/main/controls/Wino.Editor.Core/Editor/editor.js): `controls/Wino.Editor.Core/Editor/editor.js`
- [Mail reader](https://github.com/bkaankose/wino-mail/blob/main/controls/Wino.Editor.Core/Editor/reader.js): `controls/Wino.Editor.Core/Editor/reader.js`

### Accounts and sync

- [Provider authentication](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Authentication/OutlookAuthenticator.cs): `src/Wino.Authentication/OutlookAuthenticator.cs`
- [Synchronization manager](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Services/SynchronizationManager.cs): `src/Wino.Core/Services/SynchronizationManager.cs`
- [CardDAV sync](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Synchronizers/CardDav/CardDavSynchronizationEngine.cs): `src/Wino.Core/Synchronizers/CardDav/CardDavSynchronizationEngine.cs`
- [Toast notifications](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core/Services/SynchronizationManager.cs): `src/Wino.Core/Services/SynchronizationManager.cs`

### Shared domain data

- [Mail records](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Mail/MailCopy.cs): `src/Wino.Core.Domain/Entities/Mail/MailCopy.cs`
- [Account records](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/MailAccount.cs): `src/Wino.Core.Domain/Entities/Shared/MailAccount.cs`
- [Custom server settings](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Entities/Shared/CustomServerInformation.cs): `src/Wino.Core.Domain/Entities/Shared/CustomServerInformation.cs`
- [Offline and local search](https://github.com/bkaankose/wino-mail/blob/main/src/Wino.Core.Domain/Models/SemanticIndexing/SemanticIndexCoverageRuleStorage.cs): `src/Wino.Core.Domain/Models/SemanticIndexing/SemanticIndexCoverageRuleStorage.cs`

### Other components

- **Mail user**
- **Mail providers**
- **Calendar providers**
- **Local data**

## Connections

- Mail user → Windows app: uses (evidence: `README.md`)
- Mail user → macOS shell: uses (evidence: `README.md`)
- Windows app → Mail list UI: offers mail (evidence: `README.md`)
- Windows app → Calendar workflows: offers calendar (evidence: `README.md`)
- Windows app → People and contacts: offers people (evidence: `README.md`)
- Windows app → To Do data: offers tasks (evidence: `README.md`)
- Mail list UI → Mail reader: reads mail (evidence: `README.md`)
- Mail list UI → Mail editor: composes mail (evidence: `README.md`)
- Mail providers → Provider authentication: authenticates (evidence: `README.md`)
- Provider authentication → Account records: configures accounts
- Synchronization manager → Mail providers: synchronizes mail (evidence: `README.md`)
- Synchronization manager → Calendar providers: synchronizes calendars (evidence: `README.md`)
- Synchronization manager → CardDAV sync: runs contact sync
- CardDAV sync → People and contacts: updates contacts (evidence: `src/Wino.Core/Synchronizers/CardDav/CardDavSynchronizationEngine.cs`)
- Synchronization manager → Toast notifications: supports notifications (evidence: `README.md`)
- Offline and local search → Local data: supports offline use (evidence: `README.md`)
- File and protocol import → Windows app: activates app (evidence: `README.md`)
- Mail list UI → Mail records: displays messages (evidence: `src/Wino.Mail.MacOS/Views/Mail/MailListPageViewController.Drag.cs`)
- Mail records → Local data: stored locally
- Custom server settings → Mail providers: configures servers
