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 ¶
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.