Prev | Current Page 2141 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


26.5.15 Milter smfi_replacebody()
Replace the message body All sendmail versions
The SMTP DATA portion of an envelope contains two parts: headers, then an empty line,
followed by the body. A Milter receives a copy of the body in its xxfi_body() function
(?§26.6.2 on page 1207). If a Milter intends to modify or replace the body, it must first
either save and then modify a copy, or create a new body.
SMFIF_CHGHDRS This Milter may call smfi_chgheader() (?§26.5.5 on page 1188) to change or delete a
header.
SMFIF_DELRCPT This Milter may call smfi_delrcpt() (?§26.5.6 on page 1189) to remove an envelope recipient
from a message.
SMFIF_QUARANTINE This Milter may call smfi_quarantine() (?§26.5.13 on page 1194) to quarantine a message.
SMFIF_SETSYMLIST This Milter may call use smfi_setsymlist() (?§26.5.22 on page 1201) to specify the list of
macros the Milter will need. (V8.14 and later)
Table 26-11. Flags for the flags entry in the smfiDesc structure (continued)
Flag Description
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
26.5 smfi_ Routine Reference | 1197
Once the new body is prepared, you call smfi_replacebody() and, using that, replace the
old body with the new. Note that you can only call smfi_replacebody() from inside the
xxfi_eom() function you write.


Pages:
2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153
śmieszne dowcipy dieta light życzenia ślubne portal Connie Talbot