This tutorial describes how to search and sort messages using the CMsvSearchSortOperation class.
You can run a search-sort operation using the following methods in the CMsvSearchSortOperation class:
to run a new search-sort query on a particular directory:
IMPORT_C void RequestL (CMsvSearchSortQuery* aQuery, TBool aMarkQuery, TRequestStatus& aQueryStatus, TInt aIterator=0)
to run a search-sort query that has already been performed:
IMPORT_C void RequestL (TInt aQueryId , TRequestStatus& aQueryStatus, TInt aIterator=0)