msg/reply: simplify string comparison
This commit is contained in:
parent
37fc4d9423
commit
bcab8de072
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
|
||||||
}
|
}
|
||||||
for _, addr := range msg.Envelope.To {
|
for _, addr := range msg.Envelope.To {
|
||||||
address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host)
|
address := fmt.Sprintf("%s@%s", addr.Mailbox, addr.Host)
|
||||||
if strings.ToLower(address) == strings.ToLower(us.Address) {
|
if strings.EqualFold(address, us.Address) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
to = append(to, addr.Format())
|
to = append(to, addr.Format())
|
||||||
|
|
Loading…
Reference in a new issue