The second argument (the name) is a string that contains the name for the header to insert.
Header names must conform to RFC standards. The Milter library performs no standards
checking, so you must ensure that no standards are violated. Note that whatever capitalization
you choose is preserved. If the header name is NULL, or if it is an empty string, smfi_
addheader() will return MI_FAILURE.
The third argument (the value) is the value for the header in the form of a string. The
value must not be NULL but may be an empty string, in which instance the header will be
inserted with no value.
The string containing the value should be fewer than 998 characters. If the value is too
long, sendmail may silently truncate it. If you need to extend the value over multiple lines,
you may do so by inserting newline characters, each followed by a space or tab. For
example:
"Spamfilter status\n\tImages=0\n\tIsHTML=NO"
Do not use carriage-return/linefeed pairs here. When needed, those pairs will later be
added by sendmail.
When later viewed by the message recipient, the preceding value might look like this:
X-Spamfilter: Spamfilter status
Images=0
IsHTML=NO
If the sendmail configuration file??™s Milter.LogLevel option (?§24.9.76.1 on page 1053) has a
value of eight or less, nothing is logged. Otherwise, if an existing header had its value
changed, the following will be logged:
Milter change: default header existing value with newvalue
Or, if a new header was added, the following message will be logged:
Milter add: header: name: value
Note that the current Milter may not have the opportunity to add a header if a prior Milter
has rejected the message.
Pages:
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132