]> Sergey Matveev's repositories - public-inbox.git/commitdiff
mbox: set gzip timestamp to the Unix epoch
authorEric Wong <e@80x24.org>
Sun, 19 Jun 2016 04:50:40 +0000 (04:50 +0000)
committerEric Wong <e@80x24.org>
Sun, 19 Jun 2016 04:54:05 +0000 (04:54 +0000)
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

index 40ca61146b53d12af17cf2ad0fb746f58c92c87e..79348766c2eee950ef0945c27ba3a57aeda1b1a8 100644 (file)
@@ -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 => [],