Module Values.RuleDmarcExpressionSource

A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.

Sourcetype nonrec t = {
  1. operator : RuleDmarcOperator.t;
    (*

    The operator to apply to the DMARC policy of the incoming email.

    *)
  2. values : RuleDmarcValueList.t;
    (*

    The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.

    *)
}
Sourceval context_ : string
Sourceval make : operator:RuleDmarcOperator.t -> values:RuleDmarcValueList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t