mailinfo: strip "RE: " prefix

We already strip the more common Re: and re:, and we do not often see RE: from saner MUA, but this prefix does exist and gets used from time to time. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Sep 9, 2012 at 02:59 UTC d5b4d80d1cc056d5cc4a18f457133b2de8fc685a
1 file changed +3 -1
builtin/mailinfo.c
+3 -1
@@ -232,7 +232,9 @@ static void cleanup_subject(struct strbuf *subject)
232 case 'r': case 'R':
233 if (subject->len <= at + 3)
234 break;
235 - if (!memcmp(subject->buf + at + 1, "e:", 2)) {
235 + if ((subject->buf[at + 1] == 'e' ||
236 + subject->buf[at + 1] == 'E') &&
237 + subject->buf[at + 2] == ':') {
238 strbuf_remove(subject, at, 3);
239 continue;
240 }