diff options
author | Eric Wong <e@80x24.org> | 2021-08-14 07:42:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-14 21:16:40 +0000 |
commit | 7057307e044b0b63e2517e125c0f971630966072 (patch) | |
tree | 96316bd0bb817dce649fcd2d738f9f44fc55bc62 /lib/PublicInbox/Reply.pm | |
parent | ea9b01fc63f864435370d3bc9cec674ce03e887e (diff) | |
download | public-inbox-7057307e044b0b63e2517e125c0f971630966072.tar.gz |
For /all/ (extindex) and like, Message-ID reuse from client errors or list-injected footers can cause threading weirdness. Avoid auto-vivification in the mapping table and dereferencing of unknown messages.
Diffstat (limited to 'lib/PublicInbox/Reply.pm')
-rw-r--r-- | lib/PublicInbox/Reply.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Reply.pm b/lib/PublicInbox/Reply.pm index 79dd46a7..d96fadfc 100644 --- a/lib/PublicInbox/Reply.pm +++ b/lib/PublicInbox/Reply.pm @@ -28,7 +28,7 @@ my $reply_headers = join('|', @reply_headers); sub mailto_arg_link { my ($ibx, $hdr) = @_; my $cc = {}; # everyone else - my $to; # this is the From address by defaultq + my $to; # this is the From address by default my $reply_to_all = 'reply-to-all'; # the only good default :P my $reply_to_cfg = $ibx->{replyto}; @@ -72,6 +72,7 @@ sub mailto_arg_link { my $mid = $hdr->header_raw('Message-ID'); push @arg, '--in-reply-to='.squote_maybe(mid_clean($mid)); my $irt = mid_href($mid); + add_addrs(\$to, $cc, $ibx->{-primary_address}) unless defined($to); delete $cc->{$to}; if ($obfs) { my $arg_to = $to; |