Summary
Implement RFC 4731 ESEARCH extension, providing compact search result representations with MIN, MAX, COUNT, and ALL result options.
Motivation
ESEARCH returns search results more efficiently than the traditional SEARCH response, especially for large result sets. Modern clients (including iOS Mail) benefit from compact UID ranges instead of listing every UID individually.
Scope
- Advertise
ESEARCH in CAPABILITY response
- Support
SEARCH RETURN (MIN MAX COUNT ALL) syntax
- Return
* ESEARCH (TAG "...") UID MIN x MAX y COUNT z ALL <uid-range> response format
- Support all four result options individually and in combination
- Fall back to standard SEARCH response when no RETURN options specified
References
- RFC 4731
- Useful for: QRESYNC (uses ESEARCH-style responses)
Summary
Implement RFC 4731 ESEARCH extension, providing compact search result representations with MIN, MAX, COUNT, and ALL result options.
Motivation
ESEARCH returns search results more efficiently than the traditional SEARCH response, especially for large result sets. Modern clients (including iOS Mail) benefit from compact UID ranges instead of listing every UID individually.
Scope
ESEARCHin CAPABILITY responseSEARCH RETURN (MIN MAX COUNT ALL)syntax* ESEARCH (TAG "...") UID MIN x MAX y COUNT z ALL <uid-range>response formatReferences