MessageRoutingEventData class final

The inbound message of a MessageRoutingEvent.

Constructors

MessageRoutingEventData({required String id, required String from, required String replyTo, required String to, required String subject, required String messageId, required int size, required double spamScore, required bool bounce, required String cc, required String date, required String inReplyTo, required String references, required String autoSubmitted, required String htmlBody, required String plainBody, required String replyFromPlainBody, required List<MessageRoutingAttachment> attachments, Map<String, String>? headers, JsonMap raw = const {}})
Creates routed message data.
const
MessageRoutingEventData.fromJson(JsonMap json)
Decodes routed message data from JSON.
factory

Properties

attachments → List<MessageRoutingAttachment>
The MIME attachments and inline parts, if the route includes them.
final
autoSubmitted → String
The Auto-Submitted header.
final
bounce → bool
Whether this is a bounce message.
final
cc → String
The CC header.
final
date → String
The Date header, as received.
final
from → String
The sender mailbox text.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
The headers, if the route includes them.
final
htmlBody → String
The HTML body.
final
id → String
The route message ID.
final
inReplyTo → String
The In-Reply-To header.
final
messageId → String
The original Message-ID header.
final
plainBody → String
The plain text body.
final
raw → JsonMap
The JSON object this value was decoded from.
final
references → String
The References header.
final
replyFromPlainBody → String
The reply text extracted from the plain text body.
final
replyTo → String
The Reply-To header as received. Empty when there is none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
The message size in bytes.
final
spamScore → double
The spam score. Higher means more likely spam; 0 when unchecked.
final
subject → String
The subject line.
final
to → String
The recipient address the route matched. On a route that groups by Message-ID, the To header as received.
final

Methods

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

Operators

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