xref: /freebsd/contrib/sendmail/libmilter/docs/smfi_addrcpt.html (revision e92d3f3ffe83a6ed7eaafac70da9cf4fafe13243)
140266059SGregory Neil Shapiro<html>
240266059SGregory Neil Shapiro<head><title>smfi_addrcpt</title></head>
340266059SGregory Neil Shapiro<body>
4e92d3f3fSGregory Neil Shapiro<!--
5e92d3f3fSGregory Neil Shapiro$Id: smfi_addrcpt.html,v 1.9 2003/10/08 17:55:00 gshapiro Exp $
6e92d3f3fSGregory Neil Shapiro-->
740266059SGregory Neil Shapiro<h1>smfi_addrcpt</h1>
840266059SGregory Neil Shapiro
940266059SGregory Neil Shapiro<table border="0" cellspacing=4 cellpadding=4>
1040266059SGregory Neil Shapiro<!---------- Synopsis ----------->
1140266059SGregory Neil Shapiro<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
1240266059SGregory Neil Shapiro<pre>
1340266059SGregory Neil Shapiro#include &lt;libmilter/mfapi.h&gt;
1440266059SGregory Neil Shapiroint smfi_addrcpt(
1540266059SGregory Neil Shapiro	SMFICTX *ctx,
1640266059SGregory Neil Shapiro	char *rcpt
1740266059SGregory Neil Shapiro);
1840266059SGregory Neil Shapiro</pre>
1940266059SGregory Neil ShapiroAdd a recipient for the current message.
2040266059SGregory Neil Shapiro</td></tr>
2140266059SGregory Neil Shapiro
2240266059SGregory Neil Shapiro<!----------- Description ---------->
2340266059SGregory Neil Shapiro<tr><th valign="top" align=left>DESCRIPTION</th><td>
2440266059SGregory Neil Shapiro<table border="1" cellspacing=1 cellpadding=4>
2540266059SGregory Neil Shapiro<tr align="left" valign=top>
2640266059SGregory Neil Shapiro<th width="80">Called When</th>
2740266059SGregory Neil Shapiro<td>Called only from <a href="xxfi_eom.html">xxfi_eom</a>.</td>
2840266059SGregory Neil Shapiro</tr>
2940266059SGregory Neil Shapiro<tr align="left" valign=top>
3040266059SGregory Neil Shapiro<th width="80">Effects</th>
3140266059SGregory Neil Shapiro<td>Add a recipient to the message envelope.</td>
3240266059SGregory Neil Shapiro</tr>
3340266059SGregory Neil Shapiro</table>
3440266059SGregory Neil Shapiro
3540266059SGregory Neil Shapiro<!----------- Arguments ---------->
3640266059SGregory Neil Shapiro<tr><th valign="top" align=left>ARGUMENTS</th><td>
3740266059SGregory Neil Shapiro    <table border="1" cellspacing=0>
3840266059SGregory Neil Shapiro    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
3940266059SGregory Neil Shapiro    <tr valign="top"><td>ctx</td>
4040266059SGregory Neil Shapiro	<td>Opaque context structure.
4140266059SGregory Neil Shapiro	</td></tr>
4240266059SGregory Neil Shapiro    <tr valign="top"><td>rcpt</td>
4340266059SGregory Neil Shapiro	<td>The new recipient's address.
4440266059SGregory Neil Shapiro	</td></tr>
4540266059SGregory Neil Shapiro    </table>
4640266059SGregory Neil Shapiro</td></tr>
4740266059SGregory Neil Shapiro
4840266059SGregory Neil Shapiro<!----------- Return values ---------->
4940266059SGregory Neil Shapiro<tr>
5040266059SGregory Neil Shapiro<th valign="top" align=left>RETURN VALUES</th>
5140266059SGregory Neil Shapiro
5240266059SGregory Neil Shapiro<td>smfi_addrcpt will fail and return MI_FAILURE if:
5340266059SGregory Neil Shapiro<ul><li>rcpt is NULL.
54323f6dcbSGregory Neil Shapiro    <li>Adding recipients in the current connection state is invalid.
5540266059SGregory Neil Shapiro    <li>A network error occurs.
5640266059SGregory Neil Shapiro    <li>SMFIF_ADDRCPT was not set when <a href="smfi_register.html">smfi_register</a> was called.
5740266059SGregory Neil Shapiro</ul>
5840266059SGregory Neil ShapiroOtherwise, it will return MI_SUCCESS.
5940266059SGregory Neil Shapiro</td>
6040266059SGregory Neil Shapiro</tr>
6140266059SGregory Neil Shapiro
6240266059SGregory Neil Shapiro<!----------- Notes ---------->
6340266059SGregory Neil Shapiro<tr align="left" valign=top>
6440266059SGregory Neil Shapiro<th>NOTES</th>
6540266059SGregory Neil Shapiro<td>
6640266059SGregory Neil ShapiroA filter which calls smfi_addrcpt must have set the SMFIF_ADDRCPT flag
6740266059SGregory Neil Shapiroin the smfiDesc_str passed to
6840266059SGregory Neil Shapiro<a href="smfi_register.html">smfi_register</a>.
6940266059SGregory Neil Shapiro</td>
7040266059SGregory Neil Shapiro</tr>
7140266059SGregory Neil Shapiro
7240266059SGregory Neil Shapiro</table>
7340266059SGregory Neil Shapiro
7440266059SGregory Neil Shapiro<hr size="1">
7540266059SGregory Neil Shapiro<font size="-1">
765ef517c0SGregory Neil ShapiroCopyright (c) 2000, 2003 Sendmail, Inc. and its suppliers.
7740266059SGregory Neil ShapiroAll rights reserved.
7840266059SGregory Neil Shapiro<br>
7940266059SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set
805ef517c0SGregory Neil Shapiroforth in the LICENSE.
8140266059SGregory Neil Shapiro</font>
8240266059SGregory Neil Shapiro</body>
8340266059SGregory Neil Shapiro</html>
84