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
1 changed files with 1 additions and 1 deletions

View File

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