* [PATCH 1/7] doc: glossary: add information for dates and timestamps
2021-03-11 10:45 6% [PATCH 0/7] doc updates, fixups, and more Eric Wong
@ 2021-03-11 10:45 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-03-11 10:45 UTC (permalink / raw)
To: meta
These have been confusing to me in the past, too.
---
Documentation/public-inbox-glossary.pod | 14 ++++++++++++++
lib/PublicInbox/Search.pm | 4 ++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/Documentation/public-inbox-glossary.pod b/Documentation/public-inbox-glossary.pod
index e188e563..61e1e9f8 100644
--- a/Documentation/public-inbox-glossary.pod
+++ b/Documentation/public-inbox-glossary.pod
@@ -83,6 +83,20 @@ the same email into one or more virtual folders for
ease-of-filtering. This is NOT tied to public-inbox names, as
messages stored by lei may not be public.
+=item IMAP INTERNALDATE, JMAP receivedAt, rt: search prefix
+
+The first valid timestamp value of Received: headers (top first).
+If no Received: header exists, the Date: header is used, and the
+current time if neither header(s) exist. When mirroring via
+git, this is the git commit time.
+
+=item IMAP SENT*, JMAP sentAt, dt: and d: search prefixes
+
+The first valid timestamp value of the Date: header(s).
+If no Date: header exists, the time from the Received: header is
+used, and then the current time if neither header exists.
+When mirroring via git, this is the git author time.
+
=head1 COPYRIGHT
Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 209969c5..c7d52daf 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -13,9 +13,9 @@ use POSIX qw(strftime);
# values for searching, changing the numeric value breaks
# compatibility with old indices (so don't change them it)
use constant {
- TS => 0, # Received: header in Unix time (IMAP INTERNALDATE)
+ TS => 0, # Received: in Unix time (IMAP INTERNALDATE, JMAP receivedAt)
YYYYMMDD => 1, # Date: header for searching in the WWW UI
- DT => 2, # Date: YYYYMMDDHHMMSS
+ DT => 2, # Date: YYYYMMDDHHMMSS (IMAP SENT*, JMAP sentAt)
# added for public-inbox 1.6.0+
BYTES => 3, # IMAP RFC822.SIZE
^ permalink raw reply related [relevance 7%]
* [PATCH 0/7] doc updates, fixups, and more
@ 2021-03-11 10:45 6% Eric Wong
2021-03-11 10:45 7% ` [PATCH 1/7] doc: glossary: add information for dates and timestamps Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-03-11 10:45 UTC (permalink / raw)
To: meta
Eric Wong (7):
doc: glossary: add information for dates and timestamps
searchidx: remove smsg_from_doc
lei_curl: note proposed master/client mode for curl
doc: update 1.7 release notes, tuning, TODO
imapclient: disable workaround for Mail::IMAPClient 3.43+
config: use '-f' key to store config file pathname
v2writable: fix undocumented --xapian-only
Documentation/RelNotes/v1.7.0.wip | 59 ++++++++++++++++++++++++-
Documentation/public-inbox-glossary.pod | 14 ++++++
Documentation/public-inbox-tuning.pod | 9 ++++
TODO | 16 +++----
lib/PublicInbox/Config.pm | 3 +-
lib/PublicInbox/IMAPClient.pm | 12 ++---
lib/PublicInbox/LeiCurl.pm | 2 +
lib/PublicInbox/Search.pm | 4 +-
lib/PublicInbox/SearchIdx.pm | 12 -----
lib/PublicInbox/V2Writable.pm | 2 +-
t/v2reindex.t | 5 +++
11 files changed, 105 insertions(+), 33 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-03-11 10:45 6% [PATCH 0/7] doc updates, fixups, and more Eric Wong
2021-03-11 10:45 7% ` [PATCH 1/7] doc: glossary: add information for dates and timestamps Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).