''${hdrlen}'' '''


The length of ${currHeader} V8.10 and above

When a header is checked using the $>+ in an H configuration command (Section 25.5.1), 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...) 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 Section

${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}).

    Part I: Build and Install
    Part II: Administration
    Part III: The Configuration File
    Chapter 21. The D (Define a Macro) Configuration Command
    Chapter 24. The O (Options) Configuration Command