View Source Paraxial (Paraxial v2.2.0)

Paraxial.io functions for use by users.

Link to this section Summary

Functions

Given an email, bulk action (such as :email), and count, return true or fase.any()

Link to this section Functions

Link to this function

bulk_allowed?(email, bulk_action, count)

View Source

Given an email, bulk action (such as :email), and count, return true or fase.any()

Example config:

config :paraxial,
  # ...
  bulk: %{email: %{trusted: 100, untrusted: 3}},
  trusted_domains: MapSet.new(["paraxial.io", "blackcatprojects.xyz"])

examples

Examples

iex> Paraxial.bulk_allowed?("mike@blackcatprojects.xyz", :email, 3)
true

iex> Paraxial.bulk_allowed?("mike@blackcatprojects.xyz", :email, 100)
true

iex> Paraxial.bulk_allowed?("mike@test.xyz", :email, 4)
false
Link to this function

email_trusted?(email, trusted_domains)

View Source