Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > b5fdf68d1ef6711be4a04d1550358feb > files > 60

libopendkim-devel-2.4.2-5.fc14.x86_64.rpm

<html>
<head><title>dkim_policy_getreportinfo()</title></head>
<body>
<!--
$Id: dkim_policy_getreportinfo.html,v 1.2 2010/07/24 04:52:15 cm-msk Exp $
-->
<h1>dkim_policy_getreportinfo()</h1>
<p align="right"><a href="index.html">[back to index]</a></p>

<table border="0" cellspacing=4 cellpadding=4>
<!---------- Synopsis ----------->
<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
<pre>
#include &lt;dkim.h&gt;
<a href="dkim_stat.html"><tt>DKIM_STAT</tt></a> dkim_policy_getreportinfo(
	<a href="dkim.html"><tt>DKIM</tt></a> *dkim,
        char *addrbuf,
        size_t addrlen,
        char *fmtbuf,
        size_t fmtlen,
        char *optsbuf,
        size_t optslen,
        char *smtpbuf,
        size_t smtplen,
	u_int *interval
);
</pre>
Retrieve information required to generate a DKIM policy failure
report.  The calling application can use this information to generate an
ARF (Abuse Reporting Format) or other report for use in reporting
messages which violate a sender's published DKIM policy.
</td></tr>

<!----------- Description ---------->
<tr><th valign="top" align=left>DESCRIPTION</th><td>
<table border="1" cellspacing=1 cellpadding=4>
<tr align="left" valign=top>
<th width="80">Called When</th>
<td><tt>dkim_policy_getreportinfo()</tt> is called after
    <a href="dkim_eom.html"><tt>dkim_eom()</tt></a> and
    <a href="dkim_policy.html"><tt>dkim_policy()</tt></a>
    when <tt>dkim</tt> is a verifying handle, i.e. one returned by an
    earlier call to <a href="dkim_verify.html"><tt>dkim_verify()</tt></a>.
</td>
</tr>
</table>

<!----------- Arguments ---------->
<tr><th valign="top" align=left>ARGUMENTS</th><td>
    <table border="1" cellspacing=0>
    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
    <tr valign="top"><td>dkim</td>
	<td>Message-specific handle, returned by
        <a href="dkim_sign.html"><tt>dkim_sign()</tt></a> or
        <a href="dkim_verify.html"><tt>dkim_verify</tt></a>.  May not be NULL.
	</td></tr>
    <tr valign="top"><td>addrbuf</td>
	<td>A buffer into which the destination address of the report,
        as extracted from the domain's policy record, will be written.
        Can be NULL if this information is not needed by the caller.
	Note that this only contains the local-part of the address;
	the domain should be extracted from the <tt>From:</tt> header
	of the message being evaluated.
	</td></tr>
    <tr valign="top"><td>addrlen</td>
	<td>Number of bytes available at <tt>addrbuf</tt>.
	</td></tr>
    <tr valign="top"><td>fmtbuf</td>
	<td>A buffer into which a colon-separated list of report formats
	acceptable to the requesting domain will be written.  This is copied
        exactly as extracted from the domain's policy record.
        Can be NULL if this information is not needed by the caller.
	</td></tr>
    <tr valign="top"><td>fmtlen</td>
	<td>Number of bytes available at <tt>fmtbuf</tt>.
	</td></tr>
    <tr valign="top"><td>optsbuf</td>
	<td>A buffer into which a colon-separated list of report options
	desired by the requesting domain will be written.  This is copied
        exactly as extracted from the domain's policy record.
        Can be NULL if this information is not needed by the caller.
	</td></tr>
    <tr valign="top"><td>optslen</td>
	<td>Number of bytes available at <tt>optsbuf</tt>.
	</td></tr>
    <tr valign="top"><td>smtpbuf</td>
	<td>A buffer into which an SMTP reply prefix will be written.
	This is copied exactly as extracted from the domain's policy record.
        Can be NULL if this information is not needed by the caller.
	</td></tr>
    <tr valign="top"><td>smtplen</td>
	<td>Number of bytes available at <tt>smtpbuf</tt>.
	</td></tr>
    <tr valign="top"><td>interval</td>
	<td>Requested report interval.  Can be NULL if this information is
	not needed by the caller.
	</td></tr>
    </table>
</td></tr>

<!----------- Notes ---------->
<tr>
<th valign="top" align=left>NOTES</th> 
<td>
<ul>
<li>None.
</ul>
</td>
</tr>
</table>

<hr size="1">
<font size="-1">
Copyright (c) 2008 Sendmail, Inc. and its suppliers.
All rights reserved.
<br>
Copyright (c) 2009, 2010, The OpenDKIM Project.  All rights reserved.

<br>
By using this file, you agree to the terms and conditions set
forth in the respective licenses.
</font>
</body>
</html>