Function: isSenderAllowed()
isSenderAllowed(
from,patterns):boolean
Whether from is permitted by the allow-list. An empty (or absent)
allow-list permits everything: resolveEmailConfig is what turns
the configured SenderPolicy into concrete patterns, so an empty
list here means the policy had nothing to narrow to.
Parameters
Section titled “Parameters”string
patterns
Section titled “patterns”string[]
Returns
Section titled “Returns”boolean