retrieveTopLines method

Future<MimeMessage> retrieveTopLines(
  1. int messageId,
  2. int numberOfLines
)

Downloads the first numberOfLines lines of the message with the given messageId

The messageId is stored as the message's sequenceId.

Implementation

Future<MimeMessage> retrieveTopLines(int messageId, int numberOfLines) async {
  final message = await sendCommand(PopTopCommand(messageId, numberOfLines));

  return message..sequenceId = messageId;
}