xref: /freebsd/contrib/sendmail/libmilter/docs/smfi_delrcpt.html (revision 5ef517c097100c80269c8a0e02678a89fde6b35e)
140266059SGregory Neil Shapiro<html>
240266059SGregory Neil Shapiro<head><title>smfi_delrcpt</title></head>
340266059SGregory Neil Shapiro<body>
440266059SGregory Neil Shapiro<h1>smfi_delrcpt</h1>
540266059SGregory Neil Shapiro
640266059SGregory Neil Shapiro<table border="0" cellspacing=4 cellpadding=4>
740266059SGregory Neil Shapiro<!---------- Synopsis ----------->
840266059SGregory Neil Shapiro<tr><th valign="top" align=left width=150>SYNOPSIS</th><td>
940266059SGregory Neil Shapiro<pre>
1040266059SGregory Neil Shapiro#include &lt;libmilter/mfapi.h&gt;
1140266059SGregory Neil Shapiroint smfi_delrcpt(
1240266059SGregory Neil Shapiro	SMFICTX *ctx;
1340266059SGregory Neil Shapiro	char *rcpt;
1440266059SGregory Neil Shapiro);
1540266059SGregory Neil Shapiro</pre>
1640266059SGregory Neil ShapiroRemove a recipient from the current message's envelope.
1740266059SGregory Neil Shapiro</td></tr>
1840266059SGregory Neil Shapiro
1940266059SGregory Neil Shapiro<!----------- Description ---------->
2040266059SGregory Neil Shapiro<tr><th valign="top" align=left>DESCRIPTION</th><td>
2140266059SGregory Neil Shapiro<table border="1" cellspacing=1 cellpadding=4>
2240266059SGregory Neil Shapiro<tr align="left" valign=top>
2340266059SGregory Neil Shapiro<th width="80">Called When</th>
2440266059SGregory Neil Shapiro<td>Called only from <a href="xxfi_eom.html">xxfi_eom</a>.</td>
2540266059SGregory Neil Shapiro</tr>
2640266059SGregory Neil Shapiro<tr align="left" valign=top>
2740266059SGregory Neil Shapiro<th width="80">Effects</th>
2840266059SGregory Neil Shapiro<td>smfi_delrcpt removes the named recipient from the current message's envelope.</td>
2940266059SGregory Neil Shapiro</tr>
3040266059SGregory Neil Shapiro</table>
3140266059SGregory Neil Shapiro
3240266059SGregory Neil Shapiro<!----------- Arguments ---------->
3340266059SGregory Neil Shapiro<tr><th valign="top" align=left>ARGUMENTS</th><td>
3440266059SGregory Neil Shapiro    <table border="1" cellspacing=0>
3540266059SGregory Neil Shapiro    <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
3640266059SGregory Neil Shapiro    <tr valign="top"><td>ctx</td>
3740266059SGregory Neil Shapiro	<td>Opaque context structure.
3840266059SGregory Neil Shapiro	</td></tr>
3940266059SGregory Neil Shapiro    <tr valign="top"><td>rcpt</td>
4040266059SGregory Neil Shapiro	<td>The recipient address to be removed, a non-NULL, null-terminated string.
4140266059SGregory Neil Shapiro	</td></tr>
4240266059SGregory Neil Shapiro    </table>
4340266059SGregory Neil Shapiro</td></tr>
4440266059SGregory Neil Shapiro
4540266059SGregory Neil Shapiro<!----------- Return values ---------->
4640266059SGregory Neil Shapiro<tr>
4740266059SGregory Neil Shapiro<th valign="top" align=left>RETURN VALUES</th>
4840266059SGregory Neil Shapiro
4940266059SGregory Neil Shapiro<td>smfi_delrcpt will fail and return MI_FAILURE if:
5040266059SGregory Neil Shapiro<ul>
5140266059SGregory Neil Shapiro    <li>rcpt is NULL.
5240266059SGregory Neil Shapiro    <li>Adding headers in the current connection state is invalid.
5340266059SGregory Neil Shapiro    <li>A network error occurs.
5440266059SGregory Neil Shapiro    <li>SMFIF_DELRCPT was not set when <a href="smfi_register.html">smfi_register</a> was called.
5540266059SGregory Neil Shapiro</ul>
5640266059SGregory Neil ShapiroOtherwise, it will return MI_SUCCESS
5740266059SGregory Neil Shapiro</td>
5840266059SGregory Neil Shapiro</tr>
5940266059SGregory Neil Shapiro
6040266059SGregory Neil Shapiro<!----------- Notes ---------->
6140266059SGregory Neil Shapiro<tr align="left" valign=top>
6240266059SGregory Neil Shapiro<th>NOTES</th>
6340266059SGregory Neil Shapiro<td>
6440266059SGregory Neil ShapiroThe addresses to be removed must match exactly.  For example, an address and its expanded form do not match.
6540266059SGregory Neil Shapiro</td>
6640266059SGregory Neil Shapiro</tr>
6740266059SGregory Neil Shapiro
6840266059SGregory Neil Shapiro</table>
6940266059SGregory Neil Shapiro
7040266059SGregory Neil Shapiro<hr size="1">
7140266059SGregory Neil Shapiro<font size="-1">
725ef517c0SGregory Neil ShapiroCopyright (c) 2000, 2003 Sendmail, Inc. and its suppliers.
7340266059SGregory Neil ShapiroAll rights reserved.
7440266059SGregory Neil Shapiro<br>
7540266059SGregory Neil ShapiroBy using this file, you agree to the terms and conditions set
765ef517c0SGregory Neil Shapiroforth in the LICENSE.
7740266059SGregory Neil Shapiro</font>
7840266059SGregory Neil Shapiro</body>
7940266059SGregory Neil Shapiro</html>
80