Sendmail 8.13.3 Programmer's Guide
Table Of Contents

Milter APIs
Message Modification APIs
Chapter 232
The declaration for smfi_delrctp() is as follows:
#include <libmilter/mfapi.h>
int smfi_delrcpt(
SMFICTX *ctx;
char *rcpt;
);
The address is not deleted if an address and its expanded form do not
match.
Arguments
You must call smfi_delrcpt() with the following arguments:
ctx Specifies an opaque context structure.
rcpt Specifies the recipient address to be removed. The
recipient address is a non-NULL, null-terminated
string.
Return Values
smfi_delrcpt() fails because of the following reasons and returns
MI_FAILURE:
• The rcpt variable is NULL.
• Deleting recipients in the current connection state is invalid.
• Invalid error occurs.
• The SMFIF_DELRCPT is not set when the smfi_register() routine is
called.
smfi_delrcpt() returns MI_SUCCESS on success.
The smfi_replacebody() API
You can use the smfi_replacebody() API to replace the data in the
message body. Use smfi_replacebody() only from the xxfi_eom()
callback.
You must not call smfi_replacebody() more than once. If you call
smfi_replacebody() more than once, the subsequent
smfi_replacebody() calls append data to the new body of the message.
The declaration of smfi_replacebody() is as follows: