From 282dc44aa67773b608cace43587ecd2c140689a4 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Sat, 7 Sep 2019 19:42:17 +0100 Subject: Check the subject line for lowercase re This ensures that a message with e.g. "RE: " at the start won't get another "Re: ". --- commands/msg/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg') diff --git a/commands/msg/reply.go b/commands/msg/reply.go index 813a66e..7c40e97 100644 --- a/commands/msg/reply.go +++ b/commands/msg/reply.go @@ -103,7 +103,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error { } var subject string - if !strings.HasPrefix(msg.Envelope.Subject, "Re: ") { + if !strings.HasPrefix(strings.ToLower(msg.Envelope.Subject), "re: ") { subject = "Re: " + msg.Envelope.Subject } else { subject = msg.Envelope.Subject -- cgit 1.4.1-2-gfad0