InboxMail class final

A mail as MailInbox received it: its envelope, and what a person reading it would see.

Constructors

InboxMail({String? sender, List<String> recipients = const [], String? from, List<String> to = const [], String? subject, String? text, String? html, required DateTime received})
InboxMail.parse(List<int> raw, {String? sender, List<String> recipients = const [], DateTime? received})
Decodes the message raw, as it arrived after the SMTP DATA command with its dot-stuffing already undone. sender and recipients are the envelope, which the message itself does not carry.
factory

Properties

from → String?
The address in the From header, without its display name.
final
hashCode → int
The hash code for this object.
no setterinherited
html → String?
The first text/html part that is not an attachment, decoded, with its line breaks as \n.
final
received → DateTime
When it was received.
final
recipients → List<String>
The envelope recipients (RCPT TO), as bare addresses: who the mail was actually delivered to, Bcc included.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → String?
The envelope sender (MAIL FROM), as a bare address, or null for the null sender <> that bounces use.
final
subject → String?
The Subject header, with any encoded words decoded.
final
text → String?
The first text/plain part that is not an attachment, decoded, with its line breaks as \n. A message with no Content-Type is plain text.
final
to → List<String>
The addresses in the To header, without their display names.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited