HP-UX Reference (11i v3 07/02) - 3 Library Functions N-Z (vol 7)

s
smfi_addrcpt(3N) smfi_addrcpt(3N)
NAME
smfi_addrcpt() - adds a recipient for the current sendmail message
SYNOPSIS
#include <libmilter/mfapi.h>
int smfi_addrcpt(
SMFICTX *
ctx,
char *
rcpt
);
PARAMETERS
ctx Specifies the opaque context structure.
rcpt Specifies the new address of the recipient.
DESCRIPTION
smfi_addrcpt()
adds a recipient to the message envelope. smfi_addrcpt()
can be called only
from the
xxfi_eom() routine.
Notes
A filter that calls the smfi_addrcpt()
function must set the SMFIF_ADDRCPT flag in the
smfiDesc_str structure passed to the smfi_register()
function.
RETURN VALUE
smfi_addrcpt() fails and returns
MI_FAILURE due to the following reasons:
The rcpt value is NULL.
Adding recipients in the current connection state is invalid.
Network error occurs.
The
SMFIF_ADDRCPT flag is not set when the
smfi_register() routine is called.
AUTHOR
smfi_addrcpt() was developed by the Sendmail Inc.
SEE ALSO
smfi_chgheader(3N), smfi_insheader(3N), smfi_addheader(3N), smfi_delrcpt(3N), smfi_replacebody(3N).
Sendmail 8.13.3 Programmer’s Guide on
docs.hp.com
.
HP-UX 11i Version 3: February 2007 1 Hewlett-Packard Company 433