aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-19 08:34:43 +0100
committerReto Brunner <reto@labrat.space>2020-02-19 08:34:43 +0100
commitbcab8de07272699e218bafb1c37c1871f3640336 (patch)
tree0f8b69fba31d353d8519de490f5fc00b1acf5f44
parent37fc4d9423151e8ca708c81ec79317b4da835a70 (diff)
msg/reply: simplify string comparison
-rw-r--r--commands/msg/reply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 4357874..c5ae1b6 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -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())