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 B12C01FEAA for ; Sun, 19 Jun 2016 06:33:06 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] mbox: set gzip timestamp to the Unix epoch Date: Sun, 19 Jun 2016 06:33:06 +0000 Message-Id: <20160619063306.26180-1-e@80x24.org> List-Id: This allows consistency between different invocations from roughly the same period and is no worse for caching any any of our existing HTML and Atom feeds. We cannot set the timestamp to the end date since messages may be added to the repository while we are iterating (and this streaming mechanism will pick them up). --- lib/PublicInbox/Mbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm index 40ca611..7934876 100644 --- a/lib/PublicInbox/Mbox.pm +++ b/lib/PublicInbox/Mbox.pm @@ -132,7 +132,7 @@ sub new { my $buf; bless { buf => \$buf, - gz => IO::Compress::Gzip->new(\$buf), + gz => IO::Compress::Gzip->new(\$buf, Time => 0), cb => $cb, ctx => $ctx, msgs => [],