aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 7f97e0b605f739983571fa85289ea9dc57218f3d
parent e367469e1a557a6536c021c9d9569307045ef989
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 16 May 2019 12:42:46 -0400

Don't prefix Re: if prefix already present

Diffstat:
Mcommands/account/reply.go | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/commands/account/reply.go b/commands/account/reply.go @@ -74,7 +74,12 @@ func Reply(aerc *widgets.Aerc, args []string) error { } } - subject := "Re: " + msg.Envelope.Subject + var subject string + if !strings.HasPrefix(msg.Envelope.Subject, "Re: ") { + subject = "Re: " + msg.Envelope.Subject + } else { + subject = msg.Envelope.Subject + } composer := widgets.NewComposer( aerc.Config(), acct.AccountConfig(), acct.Worker()).