Table of Contents

Class EmailLogsListFilter

Namespace
Mailtrap.EmailLogs.Models
Assembly
Mailtrap.Abstractions.dll

Filter for listing email logs. Uses typed filter fields per spec (concrete operators per field).

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

Properties

Category

Filter by category. Operators: equal, not_equal.

public EmailLogExactStringFilter? Category { get; set; }

Property Value

EmailLogExactStringFilter

ClicksCount

Filter by clicks count. Operators: equal, greater_than, less_than.

public EmailLogNumberFilter? ClicksCount { get; set; }

Property Value

EmailLogNumberFilter

ClientIp

Filter by client IP. Operators: equal, not_equal, contain, not_contain.

public EmailLogStringFilter? ClientIp { get; set; }

Property Value

EmailLogStringFilter

EmailServiceProvider

Filter by email service provider. Operators: equal, not_equal.

public EmailLogExactStringFilter? EmailServiceProvider { get; set; }

Property Value

EmailLogExactStringFilter

EmailServiceProviderResponse

Filter by email service provider response. Operators: ci_contain, ci_not_contain, ci_equal, ci_not_equal.

public EmailLogCiStringFilter? EmailServiceProviderResponse { get; set; }

Property Value

EmailLogCiStringFilter

Events

Filter by events. Operators: include_event, not_include_event. Values: delivery, open, click, bounce, spam, unsubscribe, soft_bounce, reject, suspension.

public EmailLogEventsFilter? Events { get; set; }

Property Value

EmailLogEventsFilter

From

Filter by sender (from) address. Operators: ci_contain, ci_not_contain, ci_equal, ci_not_equal.

public EmailLogCiStringFilter? From { get; set; }

Property Value

EmailLogCiStringFilter

OpensCount

Filter by opens count. Operators: equal, greater_than, less_than.

public EmailLogNumberFilter? OpensCount { get; set; }

Property Value

EmailLogNumberFilter

RecipientMx

Filter by recipient MX. Operators: ci_contain, ci_not_contain, ci_equal, ci_not_equal.

public EmailLogCiStringFilter? RecipientMx { get; set; }

Property Value

EmailLogCiStringFilter

SendingDomainId

Filter by sending domain ID. Operators: equal, not_equal.

public EmailLogSendingDomainIdFilter? SendingDomainId { get; set; }

Property Value

EmailLogSendingDomainIdFilter

SendingIp

Filter by sending IP. Operators: equal, not_equal, contain, not_contain.

public EmailLogStringFilter? SendingIp { get; set; }

Property Value

EmailLogStringFilter

SendingStream

Filter by sending stream. Operators: equal, not_equal. Values: transactional, bulk.

public EmailLogSendingStreamFilter? SendingStream { get; set; }

Property Value

EmailLogSendingStreamFilter

SentAfter

Start of sent-at range (ISO 8601). Must be before or equal to SentBefore.

public DateTimeOffset? SentAfter { get; set; }

Property Value

DateTimeOffset?

SentBefore

End of sent-at range (ISO 8601). Must be after or equal to SentAfter.

public DateTimeOffset? SentBefore { get; set; }

Property Value

DateTimeOffset?

Status

Filter by message status. Operators: equal, not_equal. Values: delivered, not_delivered, enqueued, opted_out.

public EmailLogStatusFilter? Status { get; set; }

Property Value

EmailLogStatusFilter

Subject

Filter by subject. Operators: ci_contain, ci_not_contain, ci_equal, ci_not_equal, empty, not_empty.

public EmailLogCiOptionalStringFilter? Subject { get; set; }

Property Value

EmailLogCiOptionalStringFilter

To

Filter by recipient (to) address. Operators: ci_contain, ci_not_contain, ci_equal, ci_not_equal.

public EmailLogCiStringFilter? To { get; set; }

Property Value

EmailLogCiStringFilter

Methods

ToQueryParameters()

Produces query key-value pairs for the filters prefix.

public IEnumerable<KeyValuePair<string, string>> ToQueryParameters()

Returns

IEnumerable<KeyValuePair<string, string>>