aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-09-07 19:42:17 +0100
committerDrew DeVault <sir@cmpwn.com>2019-09-11 12:11:42 -0400
commit282dc44aa67773b608cace43587ecd2c140689a4 (patch)
tree50cc5919d00e2900acc1a06fc1f4d64550ce89a9 /commands
parent3c3bc517b5d0a860c03c9c5a701f733bd4bf4e4d (diff)
Check the subject line for lowercase re
This ensures that a message with e.g. "RE: " at the start won't get another "Re: ".
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/reply.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 813a66e..7c40e97 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -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