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 SMTPDATAcommand with its dot-stuffing already undone.senderandrecipientsare the envelope, which the message itself does not carry.factory
Properties
- from → String?
-
The address in the
Fromheader, without its display name.final - hashCode → int
-
The hash code for this object.
no setterinherited
- html → String?
-
The first
text/htmlpart 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
Subjectheader, with any encoded words decoded.final - text → String?
-
The first
text/plainpart that is not an attachment, decoded, with its line breaks as\n. A message with noContent-Typeis plain text.final -
to
→ List<
String> -
The addresses in the
Toheader, 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