1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00

Check the subject line for lowercase re

This ensures that a message with e.g. "RE: " at the start won't get
another "Re: ".
This commit is contained in:
Jeffas 2019-09-07 19:42:17 +01:00 committed by Drew DeVault
parent 3c3bc517b5
commit 282dc44aa6

@ -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