Table of Contents

Class ForwardOutcome

Namespace
Mailtrap.Inbound.Models
Assembly
Mailtrap.Abstractions.dll

Represents the outcome of forwarding a received message to one forward-rule destination.

public sealed record ForwardOutcome : IEquatable<ForwardOutcome>
Inheritance
ForwardOutcome
Implements

Properties

Destination

Gets or sets the destination address.

[JsonPropertyName("destination")]
public string? Destination { get; set; }

Property Value

string

Destination address.

MessageId

Gets or sets the forwarded message identifier.

[JsonPropertyName("message_id")]
public string? MessageId { get; set; }

Property Value

string

Forwarded message identifier.

Reason

Gets or sets the rejection reason.

[JsonPropertyName("reason")]
public string? Reason { get; set; }

Property Value

string

Rejection reason.

RuleId

Gets or sets the forward rule identifier.

[JsonPropertyName("rule_id")]
public long RuleId { get; set; }

Property Value

long

Forward rule identifier.

RuleName

Gets or sets the forward rule name.

[JsonPropertyName("rule_name")]
public string? RuleName { get; set; }

Property Value

string

Forward rule name.

Status

Gets or sets the forward status.

[JsonPropertyName("status")]
public ForwardOutcomeStatus Status { get; set; }

Property Value

ForwardOutcomeStatus

Forward status.