From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4703D1FAE8; Thu, 29 Mar 2018 10:28:30 +0000 (UTC) From: "Eric Wong (Contractor, The Linux Foundation)" To: meta@public-inbox.org Cc: "Eric Wong (Contractor, The Linux Foundation)" Subject: [PATCH 05/14] searchmsg: document why we store To: and Cc: for NNTP Date: Thu, 29 Mar 2018 10:28:10 +0000 Message-Id: <20180329102819.15234-6-e@80x24.org> In-Reply-To: <20180329102819.15234-1-e@80x24.org> References: <20180329102819.15234-1-e@80x24.org> List-Id: Otherwise I would forget and be tempted to remove them. --- lib/PublicInbox/SearchMsg.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index e314fed..e55d401 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; } -- EW