diff options
author | Eric Wong <e@80x24.org> | 2021-03-04 19:10:58 -0800 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-05 07:20:12 +0000 |
commit | 2958cd17d58c79c952afae6cfd594595ffcaf4fa (patch) | |
tree | 9da584d1027eab9157465fc17ef712aafc7c3617 /lib/PublicInbox/IMAPsearchqp.pm | |
parent | f4b80f19d30845d43c82e49fc071077582b17a74 (diff) | |
download | public-inbox-2958cd17d58c79c952afae6cfd594595ffcaf4fa.tar.gz |
So far, searching by size has never been publicly documented, and IMHO, of questionable utility. In any case, "z:" is what mairix(1) uses, so it may be familiar to existing mairix users (I've never used this prefix myself). So far, this prefix is only used internally in tests and in auto-translated queries from IMAP; thus this incompatible change is unlikely to affect anyone.
Diffstat (limited to 'lib/PublicInbox/IMAPsearchqp.pm')
-rw-r--r-- | lib/PublicInbox/IMAPsearchqp.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/IMAPsearchqp.pm b/lib/PublicInbox/IMAPsearchqp.pm index 2fb92bb8..9f0c1205 100644 --- a/lib/PublicInbox/IMAPsearchqp.pm +++ b/lib/PublicInbox/IMAPsearchqp.pm @@ -165,7 +165,7 @@ sub msn_set { # things that should not match sub impossible { my ($self) = @_; - push @{$self->{xap}}, 'bytes:..0'; + push @{$self->{xap}}, 'z:..0'; my $sql = $self->{sql} or return 1; $$sql .= ' AND num < 0'; } @@ -217,8 +217,8 @@ BEFORE_date : 'BEFORE' date { $q->BEFORE(\%item) } MSN_set : sequence_set { $q->msn_set($item{sequence_set}) } UID_set : "UID" sequence_set { $q->uid_set($item{sequence_set}) } -LARGER_number : "LARGER" number { $q->xap_only("bytes:$item{number}..") } -SMALLER_number : "SMALLER" number { $q->xap_only("bytes:..$item{number}") } +LARGER_number : "LARGER" number { $q->xap_only("z:$item{number}..") } +SMALLER_number : "SMALLER" number { $q->xap_only("z:..$item{number}") } DELETED : "DELETED" { $q->impossible } OLD : "OLD" { $q->impossible } |