* [PATCH] view: decode In-Reply-To comments added by Gnus
@ 2024-02-07 23:39 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2024-02-07 23:39 UTC (permalink / raw)
To: spew
I noticed it in <https://yhbt.net/lore/git/xmqqr0ho9oi9.fsf@gitster.g/>
while scanning for something else.
---
lib/PublicInbox/View.pm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 2875511a..172af195 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -746,7 +746,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 Gnus:
+ for (grep(/=\?/, @irt)) {
+ s/(=\?.*)\z/PublicInbox::Eml::mhdr_decode $1/se;
+ }
+ } else {
$refs = references($eml);
$irt[0] = pop(@$refs) if scalar @$refs;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-07 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 23:39 [PATCH] view: decode In-Reply-To comments added by Gnus Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).