about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--commands/account/reply.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/account/reply.go b/commands/account/reply.go
index 803c616..84e7614 100644
--- 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()).