~sircmpwn/aerc

282dc44aa67773b608cace43587ecd2c140689a4 — Jeffas 6 months ago 3c3bc51
Check the subject line for lowercase re

This ensures that a message with e.g. "RE: " at the start won't get
another "Re: ".
1 files changed, 1 insertions(+), 1 deletions(-)

M commands/msg/reply.go
M commands/msg/reply.go => commands/msg/reply.go +1 -1
@@ 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