Query: smfi_replacebody
OS: hpux
Section: 3n
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
smfi_replacebody(3N) smfi_replacebody(3N)NAMEsmfi_replacebody() - replaces the data in the sendmail message bodySYNOPSISPARAMETERSctx 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.DESCRIPTIONreplaces 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 o As the message body may be very large, setting may significantly affect filter performance. o If a filter sets but does not call the original body remains unchanged. o The filter order is important for the routine. Filters placed later in the sequence will observe the changesRETURN VALUEfails and returns due to the following reasons: o The value of bodyp is equal to NULL and the value of bodylen is greater than 0. o Changing the body in the current connection state is invalid. o Network error occurs. o The is not set when the function is called.AUTHORwas 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)