Štěpán Němec <stepnem@smrk.net> wrote:
> Eric Wong wrote:
> > Subject: [PATCH] view: decode In-Reply-To comments added by Gnus
> Or just "some MUAs"? Who knows who else...
Yeah, I wouldn't be surprised if there were more...
---8<---
Subject: [PATCH] view: decode In-Reply-To comments added by some MUAs
Emacs-based MUAs (e.g. Gnus and rmail) can do it, and maybe
some others, too. I noticed it in
<https://yhbt.net/lore/git/xmqqr0ho9oi9.fsf@gitster.g/>
while scanning for something else.
}
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;
}