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

Copy Markdown View Source

Users who moved, stored in Sovite's database and managed with sovitectl moved. Mail for them is rejected with 5.1.6 and their new location.

As a Sovite.Core.Lookup table, a lookup returns the new location.

Summary

Functions

Deletes the entry for address.

Lists all entries, by address.

Records that address moved to new_location, replacing any earlier entry.

Functions

delete(repo, address)

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

Deletes the entry for address.

list(repo)

Lists all entries, by address.

set(repo, address, new_location)

Records that address moved to new_location, replacing any earlier entry.