[dev] Limit total emails in search

Michael M Slusarz slusarz at horde.org
Tue Jan 17 19:13:38 UTC 2012


Quoting Javed Chauhan <little_heartly at yahoo.co.in>:

> I want to limit total number of emails in my inbox search result while i
> search the particular string so if there are number of results will not get
> crash.
>
> means if i search gmail.com should not be there from address then if it will
> get 1000 records but i just want to limit it to 200 etc..

You can't.  By definition, IMAP searches always return all results.

And Gmail doesn't provide SORT.  So we necessarily have to download  
ALL headers of ALL messages in the mailbox to properly sort the mailbox.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list