mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:44:37 +03:00
webmail: in list of From address to use in compose window, don't add the catchall address
it was even selected by default.
This commit is contained in:
@ -1860,7 +1860,7 @@ const compose = (opts: ComposeOptions, listMailboxes: listMailboxes) => {
|
||||
}
|
||||
|
||||
let haveFrom = false
|
||||
const fromOptions = accountAddresses.map(a => {
|
||||
const fromOptions = accountAddresses.filter(a => a.User).map(a => {
|
||||
const selected = opts.from && opts.from.length === 1 && equalAddress(a, opts.from[0]) || loginAddress && equalAddress(a, loginAddress) && (!opts.from || envelopeIdentity(opts.from))
|
||||
const o = dom.option(formatAddress(a), selected ? attr.selected('') : [])
|
||||
if (selected) {
|
||||
|
Reference in New Issue
Block a user