Skip to content

Commit

Permalink
reply: consider the From address too when checking aliases
Browse files Browse the repository at this point in the history
This sets the likely usually desired From address when replying to a
previously sent email and does not compose To the alias instead (unless
reply-to-self is enabled).

Changelog-fixed: Aliases are now taken into account correctly when
 replying to own messages such as from the Sent folder or via a
 mailing list.
Signed-off-by: Karel Balej <[email protected]>
Acked-by: Robin Jarry <[email protected]>
  • Loading branch information
balejk authored and rjarry committed Oct 24, 2024
1 parent 4f866e6 commit e319d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/msg/reply.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func chooseFromAddr(conf *config.AccountConfig, msg *models.MessageInfo) *mail.A
}

rec := newAddrSet()
rec.AddList(msg.Envelope.From)
rec.AddList(msg.Envelope.To)
rec.AddList(msg.Envelope.Cc)
// test the from first, it has priority over any present alias
Expand Down

0 comments on commit e319d32

Please sign in to comment.