From: Eric Wong (Contractor, The Linux Foundation) Date: Thu, 29 Mar 2018 09:57:48 +0000 (+0000) Subject: searchmsg: document why we store To: and Cc: for NNTP X-Git-Tag: v1.1.0-pre1~111 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1775db99c8004699efefc010fe2f76f375adedf3;p=public-inbox.git searchmsg: document why we store To: and Cc: for NNTP Otherwise I would forget and be tempted to remove them. --- diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index e314fed1..e55d4019 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -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; }