about summary refs log tree commit diff stats
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
parent3c3bc517b5d0a860c03c9c5a701f733bd4bf4e4d (diff)
downloadaerc-282dc44aa67773b608cace43587ecd2c140689a4.tar.gz
Check the subject line for lowercase re
This ensures that a message with e.g. "RE: " at the start won't get
another "Re: ".
-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
ref='#n120'>120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179