retryaudience

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package retryaudience is the audience of a retry (review AN-7, R5.L5): the addresses of an issue that a mailbox provider blocked for the sender's reputation or policy. They are valid addresses, so once the block is fixed the issue goes to them again, once, as a campaign of its own: the issue's lists and segments, with "retry_of" naming the issue. The sending engine and Send Readiness both keep only who Load says, so the count Review & send confirms is who gets it, and the audience's usual rules (unsubscribed, suppressed, paused) still leave people out.

Index

Constants

View Source
const Key = "retry_of"

Key is the audience key that names the issue a campaign retries.

Variables

This section is empty.

Functions

func Of

func Of(raw json.RawMessage) (uuid.UUID, bool)

Of reads the issue a campaign's audience retries.

func With

func With(raw json.RawMessage, issue uuid.UUID) (json.RawMessage, error)

With is an audience that retries an issue: the issue's own audience with Key naming it.

func Without

func Without(raw json.RawMessage) json.RawMessage

Without is an audience that retries nothing (a copy of a retry).

Types

type Keep

type Keep struct {
	// contains filtered or unexported fields
}

Keep says who of an audience may get it: everyone, or for a retry the issue's blocked addresses.

func Load

func Load(ctx context.Context, q *store.Queries, wsID uuid.UUID, audience json.RawMessage, except uuid.UUID) (Keep, error)

Load reads who of a campaign's audience may get it: for a retry (audience naming an issue), the issue's contacts whose email was blocked for the sender's reputation or policy and never delivered, who haven't been sent a retry of it yet; except is the retry itself, whose own messages don't count. Without a retry, everyone.

func LoadIssue

func LoadIssue(ctx context.Context, q *store.Queries, wsID, issue, except uuid.UUID) (Keep, error)

LoadIssue reads who a retry of an issue may go to (Load).

func (Keep) Keeps

func (k Keep) Keeps(id uuid.UUID) bool

Keeps reports whether a contact may get the campaign.

func (Keep) Len

func (k Keep) Len() int

Len is how many contacts a retry may go to.

func (Keep) Retry

func (k Keep) Retry() bool

Retry reports whether the audience is a retry's.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL