fetchMessagesByCriteria method
Fetches messages by the specified criteria.
This call is more flexible than fetchMessages.
fetchIdsAndCriteria
the requested message IDs and specification of the requested elements, e.g. '1:* (ENVELOPE)' or '1:* (FLAGS ENVELOPE) (CHANGEDSINCE 1232232)'.
Implementation
Future<FetchImapResult> fetchMessagesByCriteria(String fetchIdsAndCriteria) {
final cmd = Command('FETCH $fetchIdsAndCriteria');
final parser = FetchParser(false);
return sendCommand<FetchImapResult>(cmd, parser);
}