about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/View.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 697535ff..44e1f2a8 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -744,7 +744,11 @@ href="d/">diff</a>)</pre><pre>];
         }
         my @irt = $eml->header_raw('In-Reply-To');
         my $refs;
-        if (!@irt) {
+        if (@irt) { # ("so-and-so's message of $DATE") added by some MUAs
+                for (grep(/=\?/, @irt)) {
+                        s/(=\?.*)\z/PublicInbox::Eml::mhdr_decode $1/se;
+                }
+        } else {
                 $refs = references($eml);
                 $irt[0] = pop(@$refs) if scalar @$refs;
         }