deleteMessage method

Future<DeleteResult> deleteMessage(
  1. MimeMessage message
)

Deletes the given message.

Depending on the service capabalities either the message is moved to the trash, copied to the trash or just flagged as deleted. Returns a DeleteResult that can be used for an undo operation, compare undoDeleteMessages.

Implementation

Future<DeleteResult> deleteMessage(MimeMessage message) {
  return deleteMessages(MessageSequence.fromMessage(message));
}