smfi_replacebody(3N)smfi_replacebody(3N)NAMEsmfi_replacebody() - replaces the data in the sendmail message body
SYNOPSISPARAMETERS
ctx Specifies the opaque context structure.
bodyp Specifies a pointer to the start of the new body data, which
does not have to be null-terminated. If bodyp is set to
NULL, the length of the body is considered to be 0 (zero).
The body data must be in CR or LF form.
bodylen Specifies the number of data bytes pointed by bodyp.
DESCRIPTION
replaces the body of the current message. can be called only from the
routine and can be called more than once. When is called more than
once, the subsequent calls append data to the new body of the message.
Notes
· As the message body may be very large, setting may significantly
affect filter performance.
· If a filter sets but does not call the original body remains
unchanged.
· The filter order is important for the routine. Filters placed later
in the sequence will observe the changes
RETURN VALUE
fails and returns due to the following reasons:
· The value of bodyp is equal to NULL and the value of bodylen is
greater than 0.
· Changing the body in the current connection state is invalid.
· Network error occurs.
· The is not set when the function is called.
AUTHOR
was developed by the Sendmail Inc.
SEE ALSOsmfi_chgheader(3N), smfi_insheader(3N), smfi_addrcpt(3N),
smfi_addheader(3N), smfi_delrcpt(3N).
on
smfi_replacebody(3N)