Sovite.Core.Repo.Tables.BccRules (sovite v0.2.0)

Copy Markdown View Source

BCC rules stored in Sovite's database, managed with sovitectl bcc (see Sovite.Core.Recipients.bcc/3).

As a Sovite.Core.Lookup table, the handle names the kind (:sender or :recipient) and a lookup returns every copy address for a pattern, joined with ", ".

Summary

Functions

Adds a rule: mail of kind matching pattern is also sent to address.

Lists all rules, by kind and pattern.

Functions

add(repo, kind, pattern, address)

Adds a rule: mail of kind matching pattern is also sent to address.

delete(repo, kind, pattern, address)

@spec delete(Sovite.Core.Repo.t(), atom(), String.t(), String.t()) ::
  :ok | {:error, :not_found}

Deletes a rule.

list(repo)

Lists all rules, by kind and pattern.