${hdrlen}
The length of ${currHeader} V8.10 and later
When a header is checked using the $>
+ in an H
configuration command
(Use $>+ to Include RFC2822 Comments on page 1131) the unaltered value of the header
is stored in the ${currHeader}
macro and the length of
that header’s unaltered value is stored in this
${hdrlen}
macro. Note that the value stored in ${currHeader}
will be
truncated to MAXNAME (MAX... on
page 120) characters, the default for which is 256.
If the header’s value was longer than MAXNAME
characters, the number of characters stored in
${currHeader}
will differ from the value stored in ${hdrlen}
. For an
illustration of one way to use this macro, see Check the header’s length
on page 1134.
${hdrlen}
is
transient. If it is defined in the configuration
file or in the command line, that definition can be
ignored by sendmail. Note that
a $&
prefix
is necessary when you reference this macro in rules
(that is, use $&{hdrlen}
, not ${hdrlen}
).
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.