about summary refs log tree commit homepage
path: root/lib/PublicInbox/IMAPsearchqp.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-13 19:06:22 -1200
committerEric Wong <e@80x24.org>2021-01-14 23:14:08 +0000
commitd1a287d4eede2c1112b73980871efb5e0203c6f3 (patch)
tree06db464ef56fc11d7ad0d73eeafec489c1018665 /lib/PublicInbox/IMAPsearchqp.pm
parent97a3b1b79eda65b494e9c01bc99afb4df33a32d5 (diff)
downloadpublic-inbox-d1a287d4eede2c1112b73980871efb5e0203c6f3.tar.gz
Meaning "Received time", as it is the best description of the
value we use from the "Received:" header, if present.  JMAP
calls it "receivedAt", but "rt:" seems like a better
abbreviation being in line with "dt:" for the "Date" header.

"Timestamp" ("ts") was potentially ambiguous given the presence
of the "Date" header.
Diffstat (limited to 'lib/PublicInbox/IMAPsearchqp.pm')
-rw-r--r--lib/PublicInbox/IMAPsearchqp.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/IMAPsearchqp.pm b/lib/PublicInbox/IMAPsearchqp.pm
index 78d9a206..2fb92bb8 100644
--- a/lib/PublicInbox/IMAPsearchqp.pm
+++ b/lib/PublicInbox/IMAPsearchqp.pm
@@ -124,7 +124,7 @@ sub ON {
         my ($self, $item) = @_;
         my $ts = yyyymmdd($item);
         my $end = $ts + 86399; # no leap day
-        push @{$self->{xap}}, "ts:$ts..$end";
+        push @{$self->{xap}}, "rt:$ts..$end";
         my $sql = $self->{sql} or return 1;
         $$sql .= " AND ts >= $ts AND ts <= $end";
 }
@@ -132,7 +132,7 @@ sub ON {
 sub BEFORE {
         my ($self, $item) = @_;
         my $ts = yyyymmdd($item);
-        push @{$self->{xap}}, "ts:..$ts";
+        push @{$self->{xap}}, "rt:..$ts";
         my $sql = $self->{sql} or return 1;
         $$sql .= " AND ts <= $ts";
 }
@@ -140,7 +140,7 @@ sub BEFORE {
 sub SINCE {
         my ($self, $item) = @_;
         my $ts = yyyymmdd($item);
-        push @{$self->{xap}}, "ts:$ts..";
+        push @{$self->{xap}}, "rt:$ts..";
         my $sql = $self->{sql} or return 1;
         $$sql .= " AND ts >= $ts";
 }