uidFetchMessage method

Future<FetchImapResult> uidFetchMessage(
  1. int messageUid,
  2. String fetchContentDefinition
)

Fetche a single messages identified by the messageUid

fetchContentDefinition the definition of what should be fetched from the message, e.g. 'BODY[]' or 'ENVELOPE', etc Also compare uidFetchMessagesByCriteria.

Implementation

Future<FetchImapResult> uidFetchMessage(
    int messageUid, String fetchContentDefinition) {
  return _fetchMessages(true, 'UID FETCH', MessageSequence.fromId(messageUid),
      fetchContentDefinition);
}