]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: case-insensitive "Re:" check for replies
authorEric Wong <e@80x24.org>
Sun, 23 Aug 2015 20:09:12 +0000 (20:09 +0000)
committerEric Wong <e@80x24.org>
Sun, 23 Aug 2015 22:35:21 +0000 (22:35 +0000)
This is to match what Mail::Thread nad our own search
relies on.  However, we will be more lenient on spaces,
though.

lib/PublicInbox/View.pm

index f9081a6dd5c40cdfce2134870ea6d681e848cb5c..72bbb94680c0d332e59c13b916c836cfb50accc4 100644 (file)
@@ -419,7 +419,7 @@ sub html_footer {
        Email::Address->purge_cache if $standalone;
 
        my $subj = $mime->header('Subject') || '';
-       $subj = "Re: $subj" unless $subj =~ /\bRe:/;
+       $subj = "Re: $subj" unless $subj =~ /\bRe:/i;
        my $mid = $mime->header('Message-ID');
        my $irt = uri_escape_utf8($mid);
        delete $cc{$to};