package uspf

  1. Overview
  2. Docs

Module Uspf.ExtractSource

Sourcetype result = [
  1. | `None
  2. | `Neutral
  3. | `Pass
  4. | `Fail
  5. | `Softfail
  6. | `Temperror
  7. | `Permerror
]
Sourcetype field = {
  1. result : result;
  2. receiver : Emile.domain option;
  3. sender : Emile.mailbox option;
  4. ip : Ipaddr.t option;
  5. ctx : ctx;
}
Sourcetype extract
Sourcetype decode = [
  1. | `Await of extract
  2. | `Fields of field list
  3. | `Malformed of string
]
Sourceval pp : field Fmt.t
Sourceval extractor : unit -> extract
Sourceval extract : extract -> decode
Sourceval src : extract -> string -> int -> int -> extract
Sourceval of_string : string -> (field, [> `Msg of string ]) result
Sourceval of_unstrctrd : Unstrctrd.t -> (field, [> `Msg of string ]) result