SYNOPSIS |
#include <dmarc.h>
OPENDMARC_STATUS_T opendmarc_policy_fetch_p(
DMARC_POLICY_T *pctx,
int *p
);
Query the library to find the p= value from the DMARC record.
|
DESCRIPTION |
Called When |
opendmarc_policy_fetch_p()
is called after the DMARC record has been fetched and parsed.
|
|
---|
ARGUMENTS |
Argument | Description |
pctx |
The address of a structure of type
DMARC_POLICY_T as returned from opendmarc_policy_connect_init().
|
p |
The address of an integer to receive the value following the p=, a value of:
DMARC_RECORD_P_UNSPECIFIED if the p= was absent or
DMARC_RECORD_P_NONE if p=none or
DMARC_RECORD_P_QUARANTINE if p=quarantine or
DMARC_RECORD_P_REJECT if p=reject.
|
|
RETURN VALUES |
- DMARC_PARSE_OKAY -- On success.
- DMARC_PARSE_ERROR_EMPTY -- The pctp pointer was NULL.
- DMARC_PARSE_ERROR_NULL_CTX -- If you passed in a p value that was NULL.
|
NOTES |
|