···11# Changelog
2233# 2026-04-10
44+- **Sent/Drafts primary-account default restored** — in multi-account setups, Sent and Drafts now default back to the first configured IMAP account while SMTP still uses the selected sending identity; added `store_sent_drafts_in_sending_account = true` for users who want Sent/Drafts to follow the sending account instead
45- **Proton Mail Bridge compatibility** — documented that Proton Mail works with neomd only via Proton Mail Bridge (paid Proton feature), added optional `tls_cert_file` support for trusting Bridge’s exported self-signed certificate, and added a narrow localhost-only TLS retry fallback for Bridge connections on `127.0.0.1`/`localhost`; normal remote IMAP/SMTP providers keep their existing strict certificate verification behavior
56- **Issue #6 verification pass** — reviewed the user report against the current code and specifically verified that startup auto-screening does not route Inbox mail to Trash in the current implementation, while manual `ToScreen` screening remains message-by-message by design
67- **Fix: Drafts/Spam reload off-tab folder mismatch** — reloading while viewing an off-tab folder now reloads that actual mailbox instead of the currently selected tab's folder; fixes the confusing case where Drafts could show Inbox content after pressing `R`
···29293030# Multiple accounts supported — add more [[accounts]] blocks
3131# Switch between them with `ctrl+a` in the inbox
3232+store_sent_drafts_in_sending_account = false # default: Sent/Drafts stay in the first IMAP account
32333334# Optional: SMTP-only aliases — cycle with ctrl+f in compose/pre-send
3435# [[senders]]
···150151on a loopback host (`127.0.0.1`, `::1`, `localhost`), neomd retries once with a
151152localhost-only fallback so existing Bridge setups keep working. If you want
152153strict verification, export the Bridge certificate and set `tls_cert_file`.
154154+155155+### Sent and Drafts Storage
156156+157157+When multiple accounts or `[[senders]]` aliases are configured, SMTP delivery
158158+always uses the selected sending identity's account.
159159+160160+By default, IMAP storage for Sent and Drafts uses the first configured account,
161161+so one primary mailbox owns your sent/draft archive:
162162+163163+```toml
164164+store_sent_drafts_in_sending_account = false
165165+```
166166+167167+If you want Sent and Drafts to follow the selected sending account instead, set:
168168+169169+```toml
170170+store_sent_drafts_in_sending_account = true
171171+```
153172154173## Sending and Discarding
155174
+6
internal/config/config.go
···160160 Accounts []AccountConfig `toml:"accounts"`
161161 Account AccountConfig `toml:"account"` // legacy single-account fallback
162162163163+ // StoreSentDraftsInSendingAccount controls where Sent/Drafts are stored when
164164+ // multiple SMTP identities are configured. Default false: always use the
165165+ // primary IMAP account (the first configured account). When true, Sent/Drafts
166166+ // follow the selected sending account.
167167+ StoreSentDraftsInSendingAccount bool `toml:"store_sent_drafts_in_sending_account"`
168168+163169 // Senders is a list of extra "From" aliases (use [[senders]] in config.toml).
164170 // These share the active account's SMTP connection — no IMAP or credentials needed.
165171 Senders []SenderConfig `toml:"senders"`