]> Sergey Matveev's repositories - public-inbox.git/commit
search: index byte size of a message for IMAP search
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:52 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit601658e48f0e28ca178ef5c4d7eed0e50ef42167
treee78b5ee412bfb4982cfb08316071f182cb5a71ea
parent77fe488ce5432a49ea8499605e0d8e155834575f
search: index byte size of a message for IMAP search

Searching for messages smaller than a certain size is allowed by
offlineimap(1), mbsync(1), and possibly other tools.  Maybe
public-inbox-watch will support it, too.

I don't see a reason to expose searching by size via WWW search
right now (but maybe in the future, I could be convinced to).

Note: we only store the byte-size of the message in git,
this is typically LF-only and we won't have the correct
size after CRLF conversion for NNTP or IMAP.
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchIdx.pm
t/search.t