# TODO ## Product identity - [x] Rename the program to **ep-mail** across the app UI, package metadata, desktop builds, and documentation. - [x] Replace the temporary sun/asterisk app mark with the Git and webmail logo, using the EP Daylight and EP Wasteland color variants. - [x] Add Android support for the mail app. - [ ] Add macOS support: configure macOS release targets and build the app on a Mac or hosted macOS runner; sign and notarize releases for distribution. - [x] Show the app version after **ep-mail** in the window title. ## Mail workflow - [x] Snooze messages until a chosen time and show a follow-up reminder when they return. - [ ] Add Undo Send and scheduled sending. - [x] Improve mail search with sender, subject, date, folder, and attachment filters. - [x] Cache recent messages and save drafts offline; queue supported sends and message actions for retry when connectivity returns. - [ ] Group related messages into conversations, with controls to expand or collapse threads. - [x] Add attachment previews and a dedicated view to find and manage attachments across mailboxes. - [x] Add configurable keyboard shortcuts for common actions such as compose, archive, reply, and search. - [x] Warn about suspicious sender addresses and links; require confirmation before opening external links. - [x] Add per-account rules to sort, archive, label, or flag new incoming messages by sender and/or subject. - [x] Add per-account signatures, notification preferences, and sync settings. - [x] Add the ability to create IMAP folders from the app. - [ ] Block remote images by default and let users load them per message. ## Mail security - [ ] Add support for encrypting and decrypting mail with OpenPGP (PGP/MIME). See [ENCRYPTION_PLAN.md](./ENCRYPTION_PLAN.md). - [x] Phase 1: foundation — OpenPGP.js, passphrase-protected key store (desktop), generate/import/export/delete keys, revocation certificate, tests, Settings UI. - [x] Phase 2: receive — detect PGP/MIME and inline PGP mail, decrypt on open, verify signatures, show encryption/signature status, handle missing keys and wrong passphrases. - [x] Phase 3: send — public-key keyring and key import from contacts/messages, encrypt and sign when composing, encrypted copy in Sent, warn instead of silently downgrading. - [x] Phase 4 (desktop): trust levels and fingerprint verification, key-change warnings, passphrase cache timeout. - [ ] Phase 4 (Android): Android Keystore key storage, biometric unlock, and the reading/sending bridge (encryption is desktop-only until then). - [x] Phase 5 (automated): large attachments, multiple recipients, corrupted/tampered payloads, inline PGP and PGP/MIME tests. - [x] Phase 5 (GnuPG): automated interoperability tests with GnuPG 2.5 (both directions: PGP/MIME, inline, clear-signed, detached signatures). - [x] Phase 6: documentation and release. - [ ] Manual interoperability check with Thunderbird. - [ ] Independent security review of the encryption code before relying on it. ## Appearance and settings - [ ] Fix the startup color-scheme flash so the selected dark theme is applied before the app window appears. - [x] Make **EP Wasteland** the default theme for new users. - [x] Move theme selection into Settings and save the selection so the chosen theme is applied every time the program starts. - [x] Keep the display name in Account Settings and make it available while adding a mailbox. ## Account settings - [ ] Fix the mailbox space indicator; it is not working. - [x] Fix automatic mail sync so the message list refreshes when new mail arrives. - [x] Sync all connected accounts' mailboxes in the Electron main process at launch/resume and periodically in the background. - [x] Track `UIDVALIDITY`, the last processed UID, and `HIGHESTMODSEQ` per account and folder; fall back to checking message flags when mod-sequences are unavailable. - [x] Add persistent IMAP IDLE watchers for up to two accounts, with reconnect backoff and periodic polling as a fallback for other accounts and servers without IDLE support. - [ ] Add push mail support. - [x] Prevent overlapping sync runs, limit concurrent account connections, and invalidate in-flight results when an account is edited or removed. - [x] Send updates to the renderer over IPC and show native notifications for new inbox mail. - [x] Add new mail notifications. - [x] Add an **Edit** button for each connected mail account so its account settings can be changed after setup. - [x] Move CalDAV and CardDAV server configuration into Account Settings, removing the server settings controls from the Calendar and Contacts views. - [x] Keep general Settings focused on appearance and other app-wide preferences rather than the display name. - [x] Display name must be set per account. - [x] Remove the display name initials from the bottom-left corner. - [x] Add the ability to delete draft mails. - [x] Fix IMAP folder creation, which does not work. - [ ] Give the sidebar (Inbox, Folders, etc.) more room so every item fits on screen: make the box scrollable with a slider, or remove or collapse less-used items. - [ ] Make labels work and add the ability to create more labels.