# 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] Fix the ep-mail logo not appearing in the Windows taskbar. - [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 a configurable Undo Send delay 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. - [x] Block remote images by default and let users load them per message on desktop and Android/Web. ## Mail security - [x] Add desktop support for encrypting and decrypting mail with OpenPGP (PGP/MIME); Android has a separate experimental implementation for local testing only. 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. - [x] Experimental Android test path: Keystore-encrypted vault key storage, key/contact management, PGP/MIME encryption/signing, and on-demand decryption. - [x] Exercise native trust-change and plaintext-send confirmations on an emulator, including cancellation. - [ ] Android release gate: native confirmation accept/cancel and bypass tests, full parity/interoperability tests, independent human cryptography/security review, and signed release review. - [ ] Android follow-up: biometric unlock, full vault lifecycle/recovery, signed/inline verification parity, and dependency advisory remediation. - [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. - [x] Manual interoperability check with Thunderbird. - [x] Address findings from the automated OpenPGP security reviews (see [SECURITY_REVIEW.md](./SECURITY_REVIEW.md)). - [ ] Complete an independent human security review of desktop and Android encryption code before any production reliance or release. - [x] Pin OpenPGP.js to the exact lockfile version while security review is pending. - [ ] Resolve the current moderate dependency advisories reported by `npm audit --omit=dev` with compatibility tests. - [ ] Add direct IPC-handler tests for both accept and cancel paths of the main-process plaintext-send confirmation. - [ ] Complete the Android security work in [ANDROID_SECURITY_PLAN.md](./ANDROID_SECURITY_PLAN.md), including Android OpenPGP and release security checks. - [x] Make Android notification details opt-in, persist the preference in the encrypted vault, and redact lock-screen previews. - [x] Add an optional native Android app lock using the device credential while leaving background mail sync available. ## 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 - [x] Add desktop OAuth2 account setup for Google and Microsoft. Configure provider client IDs with the environment variables documented in `README.md`; Android remains password-based. - [ ] 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. - [ ] Improve sidebar usability so all folders fit or can be reached by scrolling; consider collapsing less-used sections. - [ ] Make labels work reliably and support creating and managing additional labels. - [x] Fix created IMAP folders not showing in the mail rules folder list; only Inbox, Archive and Trash are shown. - [x] Fix draft mail deletion to work like the Inbox: select multiple drafts and delete the selected drafts at once. - [x] Show created IMAP folders in the same list as Inbox and the other folders, and move the folder list and the add-folder button to the top row above Inbox. Add scrolling to the IMAP folders area. - [x] Add desktop public key server support for finding and publishing OpenPGP keys: keys.openpgp.org (VKS), keys.mailvelope.com (HKP over HTTPS), and user-defined HTTPS HKP/VKS servers. Servers are disabled until selected; lookup checks all enabled servers, and publishing requires one explicitly selected destination. Discovered keys remain unverified until fingerprint verification. - [x] Add the ability to attach multiple files to outgoing mails on desktop and Android/Web, persist them in local drafts, and include them within desktop OpenPGP protection. - [x] Fix security review findings: confirm key replacement in the main process, enforce the plaintext-send check in the main process, and handle the Linux safeStorage basic_text backend. See SECURITY_REVIEW.md. - [x] Add the ability to change the passphrase of an encryption key on desktop.