Class InboundMessage
Represents a received inbound message.
Body and raw-message fields (HtmlBody, TextBody,
RawMessageUrl, ...) and attachment download URLs are populated
on get-by-id; list items carry only the summary fields.
public sealed record InboundMessage : IEquatable<InboundMessage>
- Inheritance
-
InboundMessage
- Implements
Properties
Attachments
Gets the message attachments.
[JsonPropertyName("attachments")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<InboundAttachment> Attachments { get; }
Property Value
- IList<InboundAttachment>
Message attachments.
Bcc
Gets the blind carbon-copy addresses.
[JsonPropertyName("bcc")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> Bcc { get; }
Property Value
Cc
Gets the carbon-copy addresses.
[JsonPropertyName("cc")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> Cc { get; }
Property Value
From
Gets or sets the sender address.
[JsonPropertyName("from")]
public string? From { get; set; }
Property Value
- string
Sender address.
Headers
Gets the message headers.
[JsonPropertyName("headers")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IDictionary<string, string> Headers { get; }
Property Value
- IDictionary<string, string>
Message headers.
HtmlBody
Gets or sets the HTML body (get-by-id only).
[JsonPropertyName("html_body")]
public string? HtmlBody { get; set; }
Property Value
- string
HTML body.
HtmlSize
Gets or sets the HTML body size, in bytes.
[JsonPropertyName("html_size")]
public int? HtmlSize { get; set; }
Property Value
- int?
HTML body size, in bytes.
Id
Gets or sets the message identifier.
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
- string
Message identifier.
InReplyTo
Gets or sets the RFC In-Reply-To header value.
[JsonPropertyName("in_reply_to")]
public string? InReplyTo { get; set; }
Property Value
- string
RFC
In-Reply-Toheader value.
InboxId
Gets or sets the identifier of the inbox the message belongs to.
[JsonPropertyName("inbox_id")]
public long? InboxId { get; set; }
Property Value
- long?
Inbox identifier.
RawMessageExpiresAt
Gets or sets the expiration timestamp of the signed raw-message URL.
[JsonPropertyName("raw_message_expires_at")]
public DateTimeOffset? RawMessageExpiresAt { get; set; }
Property Value
- DateTimeOffset?
Expiration timestamp of the signed raw-message URL.
RawMessageUrl
Gets or sets the signed URL to download the raw .eml message (get-by-id only).
[JsonPropertyName("raw_message_url")]
public string? RawMessageUrl { get; set; }
Property Value
- string
Signed raw-message URL.
ReceivedAt
Gets or sets the timestamp when the message was received.
[JsonPropertyName("received_at")]
public DateTimeOffset? ReceivedAt { get; set; }
Property Value
- DateTimeOffset?
Timestamp when the message was received.
References
Gets the RFC References header values.
[JsonPropertyName("references")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> References { get; }
Property Value
ReplyTo
Gets or sets the reply-to address.
[JsonPropertyName("reply_to")]
public string? ReplyTo { get; set; }
Property Value
- string
Reply-to address.
RfcMessageId
Gets or sets the RFC Message-ID header value.
[JsonPropertyName("rfc_message_id")]
public string? RfcMessageId { get; set; }
Property Value
- string
RFC
Message-IDheader value.
Size
Gets or sets the total message size, in bytes.
[JsonPropertyName("size")]
public int? Size { get; set; }
Property Value
- int?
Total message size, in bytes.
Subject
Gets or sets the subject line.
[JsonPropertyName("subject")]
public string? Subject { get; set; }
Property Value
- string
Subject line.
TextBody
Gets or sets the plain-text body (get-by-id only).
[JsonPropertyName("text_body")]
public string? TextBody { get; set; }
Property Value
- string
Plain-text body.
TextSize
Gets or sets the text body size, in bytes.
[JsonPropertyName("text_size")]
public int? TextSize { get; set; }
Property Value
- int?
Text body size, in bytes.
ThreadId
Gets or sets the identifier of the thread the message belongs to.
[JsonPropertyName("thread_id")]
public string? ThreadId { get; set; }
Property Value
- string
Thread identifier.
To
Gets the recipient addresses.
[JsonPropertyName("to")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> To { get; }