From b87b0181f30fa58954af25cd79bce652f4b0cddb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Sep 2021 01:42:06 +0000 Subject: lei -f reply: fix Cc: header combining When combining lines from To: and Cc: headers, ", " needs to be used to separate them. --- lib/PublicInbox/LeiViewText.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiViewText.pm') diff --git a/lib/PublicInbox/LeiViewText.pm b/lib/PublicInbox/LeiViewText.pm index 34612711..1f002ccd 100644 --- a/lib/PublicInbox/LeiViewText.pm +++ b/lib/PublicInbox/LeiViewText.pm @@ -96,10 +96,11 @@ sub quote_hdr_buf ($$) { for my $f (qw(To Cc)) { for my $v ($eml->header_raw($f)) { next if $v !~ /\S/; - $cc .= $v; + $cc .= ", $v"; $to //= $v; } } + substr($cc, 0, 2, ''); # s/^, //; PublicInbox::View::fold_addresses($to); PublicInbox::View::fold_addresses($cc); _xs($to); -- cgit v1.2.3-24-ge0c7