1168515Sgshapiro<HTML>
2168515Sgshapiro<HEAD><TITLE>smfi_addrcpt_par</TITLE></HEAD>
3168515Sgshapiro<BODY>
4168515Sgshapiro<!--
5168515Sgshapiro$Id: smfi_addrcpt_par.html,v 1.4 2007/03/19 16:38:02 ca Exp $
6168515Sgshapiro-->
7168515Sgshapiro<H1>smfi_addrcpt_par</H1>
8168515Sgshapiro
9168515Sgshapiro<TABLE border="0" cellspacing=4 cellpadding=4>
10168515Sgshapiro<!---------- Synopsis ----------->
11168515Sgshapiro<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
12168515Sgshapiro<PRE>
13168515Sgshapiro#include &lt;libmilter/mfapi.h&gt;
14168515Sgshapiroint smfi_addrcpt_par(
15168515Sgshapiro	SMFICTX *ctx,
16168515Sgshapiro	char *rcpt,
17168515Sgshapiro	char *args
18168515Sgshapiro);
19168515Sgshapiro</PRE>
20168515SgshapiroAdd a recipient for the current message including ESMTP arguments.
21168515Sgshapiro</TD></TR>
22168515Sgshapiro
23168515Sgshapiro<!----------- Description ---------->
24168515Sgshapiro<TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
25168515Sgshapiro<TABLE border="1" cellspacing=1 cellpadding=4>
26168515Sgshapiro<TR align="left" valign=top>
27168515Sgshapiro<TH width="80">Called When</TH>
28168515Sgshapiro<TD>Called only from <A href="xxfi_eom.html">xxfi_eom</A>.</TD>
29168515Sgshapiro</TR>
30168515Sgshapiro<TR align="left" valign=top>
31168515Sgshapiro<TH width="80">Effects</TH>
32168515Sgshapiro<TD>Add a recipient to the message envelope.</TD>
33168515Sgshapiro</TR>
34168515Sgshapiro</TABLE>
35168515Sgshapiro
36168515Sgshapiro<!----------- Arguments ---------->
37168515Sgshapiro<TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
38168515Sgshapiro    <TABLE border="1" cellspacing=0>
39168515Sgshapiro    <TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
40168515Sgshapiro    <TR valign="top"><TD>ctx</TD>
41168515Sgshapiro	<TD>Opaque context structure.
42168515Sgshapiro	</TD></TR>
43168515Sgshapiro    <TR valign="top"><TD>rcpt</TD>
44168515Sgshapiro	<TD>The new recipient's address.
45168515Sgshapiro	</TD></TR>
46168515Sgshapiro    <TR valign="top"><TD>args</TD>
47168515Sgshapiro	<TD>The new recipient's ESMTP parameters.
48168515Sgshapiro	</TD></TR>
49168515Sgshapiro    </TABLE>
50168515Sgshapiro</TD></TR>
51168515Sgshapiro
52168515Sgshapiro<!----------- Return values ---------->
53168515Sgshapiro<TR>
54168515Sgshapiro<TH valign="top" align=left>RETURN VALUES</TH> 
55168515Sgshapiro
56168515Sgshapiro<TD>smfi_addrcpt will fail and return MI_FAILURE if:
57168515Sgshapiro<UL><LI>rcpt is NULL.
58168515Sgshapiro    <LI>Adding recipients in the current connection state is invalid.
59168515Sgshapiro    <LI>A network error occurs.
60168515Sgshapiro    <LI>SMFIF_ADDRCPT_PAR was not set when
61168515Sgshapiro	<A href="smfi_register.html">smfi_register</A> was called.
62168515Sgshapiro</UL>
63168515SgshapiroOtherwise, it will return MI_SUCCESS.
64168515Sgshapiro</TD>
65168515Sgshapiro</TR>
66168515Sgshapiro
67168515Sgshapiro<!----------- Notes ---------->
68168515Sgshapiro<TR align="left" valign=top>
69168515Sgshapiro<TH>NOTES</TH> 
70168515Sgshapiro<TD>
71168515SgshapiroA filter which calls smfi_addrcpt must have set the SMFIF_ADDRCPT_PAR flag
72168515Sgshapiroin the smfiDesc_str passed to 
73168515Sgshapiro<A href="smfi_register.html">smfi_register</A>.
74168515Sgshapiro</TD>
75168515Sgshapiro</TR>
76168515Sgshapiro
77168515Sgshapiro</TABLE>
78168515Sgshapiro
79168515Sgshapiro<HR size="1">
80168515Sgshapiro<FONT size="-1">
81168515SgshapiroCopyright (c) 2006 Sendmail, Inc. and its suppliers.
82168515SgshapiroAll rights reserved.
83168515Sgshapiro<BR>
84168515SgshapiroBy using this file, you agree to the terms and conditions set
85168515Sgshapiroforth in the LICENSE.
86168515Sgshapiro</FONT>
87168515Sgshapiro</BODY>
88168515Sgshapiro</HTML>
89