Sendmail 8.13.3 Programmer's Guide
Table Of Contents

Milter APIs
Callbacks
Chapter 242
bodyp Specifies a pointer to the beginning of a block of body
data. bodyp is not valid outside a call to the
xxfi_body() callback.
len Specifies the amount of data pointed by bodyp.
The xxfi_eom() Callback
The xxfi_eom() callback denotes the end of a message and returns the
SMFIS_CONTINUE value to the calling filter application. xxfi_eom() is
called once after all calls to the xxfi_body() callback for a given
message.
The declaration of xxfi_eom() is as follows:
#include <libmilter/mfapi.h>
sfsistat (*xxfi_eom)(
SMFICTX * ctx
);
A filter application must make all its modifications to the message
headers, body, and envelope in xxfi_eom() callback. These modifications
are made through the smfi_* APIs.
Argument
You must call xxfi_eom() API with the ctx argument, which specifies
an opaque context structure.
The xxfi_abort() Callback
The xxfi_abort() callback handles the messages that are aborted.
xxfi_abort() returns the SMFIS_CONTINUE value to the calling filter
application. You can call xxfi_abort() any time while processing the
message, that is between a message-oriented API and the xxfi_eom()
callback.
The declaration of xxfi_abort() is as follows:
#include <libmilter/mfapi.h>
sfsistat (*xxfi_abort)(
SMFICTX * ctx
);
Following are some points to consider regarding xxfi_abort():