Milter xxfi_eom()

Process a header All Milter versions

The SMTP DATA phase of a message ends when the connecting client sends a dot on a line by itself. During that SMTP DATA phase, zero or more headers may have been sent, followed by a blank line and then the message body (possibly empty). After sendmail receives the final dot, but before sendmail replies to the final dot, this xxfi_eom() function, if used, is called.

The xxfi_eom() function is called like this:

sfsistat
xxfi_eom(SMFICTX *ctx)

Here, ctx is the context pointer passed to all xxfi_ functions to maintain state in a multithreaded environment. That is the only argument passed.

The xxfi_eom() function is special in that it is allowed to do many things that other xxfi_ functions are not allowed to do. Table 26-16 lists the smfi_ routines that only xxfi_eom() may call.

Table 26-16. smfi_ routines that only xxfi_eom() may call

Routine

§

Flag required (see Table 26-11 on page 1195)

smfi_addheader

Milter smfi_addheader() on page 1184

SMFIF_ADDHDRS

smfi_addrcpt

Milter smfi_addrcpt() on page 1185

SMFIF_ADDRCPT

smfi_addrcpt_par

Milter smfi_addrcpt_par() on page 1186

SMFIF_ADDRCPT_PAR

smfi_chgfrom

Milter smfi_chgfrom() on page 1187

SMFIF_CHGFROM

smfi_chgheader

Milter smfi_chgheader() on page 1188

SMFIF_CHGHDRS

smfi_delrcpt

Milter smfi_delrcpt() on page 1189

SMFIF_DELRCPT

smfi_insheader

Milter smfi_insheader() on page 1192

SMFIF_ADDHDRS

smfi_progress

Milter smfi_progress() on page 1193

No flags required.

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.