about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiViewText.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-26 01:42:06 +0000
committerEric Wong <e@80x24.org>2021-09-26 01:43:34 +0000
commitb87b0181f30fa58954af25cd79bce652f4b0cddb (patch)
treeab78e89814975b858ab19df971107c8ddede3460 /lib/PublicInbox/LeiViewText.pm
parent065bc720f6c11b5e4f0ba79948087a6a1284edd5 (diff)
downloadpublic-inbox-b87b0181f30fa58954af25cd79bce652f4b0cddb.tar.gz
When combining lines from To: and Cc: headers, ", " needs to be
used to separate them.
Diffstat (limited to 'lib/PublicInbox/LeiViewText.pm')
-rw-r--r--lib/PublicInbox/LeiViewText.pm3
1 files changed, 2 insertions, 1 deletions
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);