I think there's an argument to be made that it should be no results, sure.
Except that implies that there are no messages which match, which isn't
true either. We could also certainly be smarter and fallback to doing
substring searches... the problem is, we never really want to do sub-string
searches on a folder of say 1M messages, and if we have a cut-off from the
maximum number of messages we'll search, that isn't developer friendly
either.
We should probably just respond with a NO.
Brandon
On Wed, Jul 30, 2014 at 1:21 AM, Eduardo Chappa <echappa@gmx.com> wrote:
> On Wed, 30 Jul 2014, Brandon Long wrote:
>
> Note that this is documented here:
>> https://support.google.com/mail/answer/78761?hl=en&ref_topic=3397501
>> Though, admittedly, "Substring search. All searches are assumed to be
>> words"
>> isn't enough to make this behavior obvious.
>>
>
> Dear Brandon,
>
> Thank you for your complete explanation. Although there is no substring
> search, I guess "%" is not a string on its own in the Gmail server, which
> would have actually resulted in no messages selected in the search in my
> case, instead of all of them.
>
> Thank you! I appreciate your explanation.
>
> --
> Eduardo
> http://patches.freeiz.com/alpine/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20140730/903fec30/attachment.html>