]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchmsg: document why we store To: and Cc: for NNTP
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 29 Mar 2018 09:57:48 +0000 (09:57 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Thu, 29 Mar 2018 10:00:00 +0000 (10:00 +0000)
Otherwise I would forget and be tempted to remove them.

lib/PublicInbox/SearchMsg.pm

index e314fed1b5645e6d5297835b6960e0861796ae7e..e55d40193a095802e7388ab8e832d18f1474e90a 100644 (file)
@@ -41,8 +41,12 @@ sub load_from_data ($$) {
        $self->{subject} = $subj;
        $self->{from} = $from;
        $self->{references} = $refs;
+
+       # To: and Cc: are stored to optimize HDR/XHDR in NNTP since
+       # some NNTP clients will use that for message displays.
        $self->{to} = $to;
        $self->{cc} = $cc;
+
        $self->{blob} = $blob;
        $self->{mid} = $mid0;
 }