From 1775db99c8004699efefc010fe2f76f375adedf3 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Thu, 29 Mar 2018 09:57:48 +0000 Subject: searchmsg: document why we store To: and Cc: for NNTP Otherwise I would forget and be tempted to remove them. --- lib/PublicInbox/SearchMsg.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/PublicInbox/SearchMsg.pm') 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; } -- cgit v1.2.3-24-ge0c7