]> Sergey Matveev's repositories - public-inbox.git/commit
index: use git commit times on missing Date/Received
authorEric Wong <e@yhbt.net>
Fri, 20 Mar 2020 08:18:13 +0000 (08:18 +0000)
committerEric Wong <e@yhbt.net>
Sun, 22 Mar 2020 09:00:23 +0000 (09:00 +0000)
commit8e81d6f0d44198717ae540421a09824d75c9bb6d
tree754d15673307a90dcba5aa4cb088f7cbcd2ece49
parentc29b2b7ded47def906cf00e3baad65c102304120
index: use git commit times on missing Date/Received

When indexing messages without Date: and/or Received: headers,
fall back to using timestamps originally recorded by git in the
commit object.  This allows git mirrors to preserve the import
datestamp and timestamp of a message according to what was fed
into git, instead of blindly falling back to the current time.
MANIFEST
lib/PublicInbox/MsgTime.pm
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchIdxShard.pm
lib/PublicInbox/V2Writable.pm
t/index-git-times.t [new file with mode: 0644]