smfi_replacebody

Synopsis


int smfi_replacebody(
SMFICTX *ctx,
unsigned char *bodyp,
int bodylen
);

Replace message-body data.

Description

Called When Called only from xxfi_eom. smfi_replacebody may be called more than once.
Effects smfi_replacebody replaces the body of the current message. If called more than once, subsequent calls result in data being appended to the new body.

Arguments

Argument Description
ctx Opaque context structure.
bodyp A pointer to the start of the new body data, which does not have to be null-terminated. If bodyp is NULL, it is treated as having length == 0. Body data should be in CR/LF form.
bodylen The number of data bytes pointed to by bodyp.

Return Values

smfi_replacebody fails and returns MI_FAILURE if:

Otherwise, it will return MI_SUCCESS.

Notes