msg/reply: simplify string comparison

This commit is contained in:
Reto Brunner 2020-02-19 08:34:43 +01:00
parent 37fc4d9423
commit bcab8de072

View file

@ -95,7 +95,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
}
for _, addr := range msg.Envelope.To {
address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host)
if strings.ToLower(address) == strings.ToLower(us.Address) {
if strings.EqualFold(address, us.Address) {
continue
}
to = append(to, addr.Format())