2
<head><title>opendmarc_policy_store_from_domain()</title></head>
5
$Id: opendmarc_policy_store_from_domain.html,v 1.5 2010/07/24 04:52:15 cm-msk Exp $
7
<h1>opendmarc_policy_store_from_domain()</h1>
8
<p align="right"><a href="index.html">[back to index]</a></p>
10
<table border="0" cellspacing=4 cellpadding=4>
11
<!---------- Synopsis ----------->
12
<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
14
#include <dmarc.h>
15
<a href="dmarc_policy_t.html"><tt>DMARC_POLICY_T</tt></a> * opendmarc_policy_store_from_domain(
16
<a href="dmarc_policy_t.html"><tt>DMARC_POLICY_T</tt></a> * pctx,
20
As soon as possible after you have located the first From: header, you should pass the value of that header to this
24
<!----------- Description ---------->
25
<tr><th valign="top" align=left>DESCRIPTION</th><td>
26
<table border="1" cellspacing=1 cellpadding=4>
27
<tr align="left" valign=top>
28
<th width="80">Called When</th>
29
<td><tt>opendmarc_policy_store_from_domain()</tt>
30
may be called while processing headers or after all headers have been processed.
34
<!----------- Arguments ---------->
35
<tr><th valign="top" align=left>ARGUMENTS</th><td>
36
<table border="1" cellspacing=0>
37
<tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
38
<tr valign="top"><td>pctx</td>
39
<td>A pointer to type <a href="dmarc_policy_t.html"><tt>DMARC_POLICY_T</tt></a>.
41
<tr valign="top"><td>from_domain</td>
42
<td>A pointer to a string containing unsigned characters.
47
<!----------- Return Values ---------->
49
<th valign="top" align=left>RETURN VALUES</th>
52
<li><tt>DMARC_PARSE_OKAY</tt> -- On success
53
<li><tt>DMARC_PARSE_ERROR_NULL_CTX</tt> -- If pctx was NULL
54
<li><tt>DMARC_PARSE_ERROR_EMPTY</tt> -- If from_domain was NULL or zero length
55
<li><tt>DMARC_PARSE_ERROR_NO_DOMAIN</tt> -- If from_domain did not contain a domain, e.g. "<>"
60
<!----------- Notes ---------->
62
<th valign="top" align=left>NOTES</th>
65
<li>You may pass the whole From: header to this function, or the value of the From: header or just the domain
66
you parsed from that address. This function will correctly handle whatever you feed it.
74
Copyright (c) 2012, The Trusted Domain Project. All rights reserved.
77
By using this file, you agree to the terms and conditions set