fetchMessage method
Fetches a single message by the given definition.
messageSequenceId
the message sequence ID of the desired message
fetchContentDefinition
the definition of what should be fetched from the message, for example (UID ENVELOPE HEADER[])
, BODY[]
or ENVELOPE
, etc
Implementation
Future<FetchImapResult> fetchMessage(
int messageSequenceId, String fetchContentDefinition) {
return fetchMessages(
MessageSequence.fromId(messageSequenceId), fetchContentDefinition);
}