From 37fc4d9423151e8ca708c81ec79317b4da835a70 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 16 Feb 2020 21:14:11 +0100 Subject: msg/reply: fix address comparison Compare self address in lowercase, to avoid self-replying when people put in uppercase versions of the mail. Reported-By: helby on Freenode --- commands/msg/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 3c69e27..4357874 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 address == us.Address { + if strings.ToLower(address) == strings.ToLower(us.Address) { continue } to = append(to, addr.Format()) -- cgit v1.2.3