${bodytype}

The ESMTP BODY parameter V8.8 and later

MIME support in V8 sendmail has been coupled to ESMTP of the new BODY parameter for the MAIL From: command. That parameter tells sendmail whether it is dealing with 7-bit or 8-bit MIME data:[315]

MAIL From:<address> BODY=7BIT
MAIL From:<address> BODY=8BITMIME

The parameter specified for the BODY (BIT or BITMIME) is the value stored in the ${bodytype} macro.

The ${bodytype} macro is intended to be used as part of the delivery agent’s A= equate (A= on page 738). It provides a means to pass this information to delivery agent programs as part of their command lines.

${bodytype} is transient. If defined in the configuration file or in the command line, that definition can be ignored by sendmail. Note that the -B command-line switch (-B on page 232) can be used to specify a value to be stored in ${bodytype}, but only for initial mail submission. Also note that a $& prefix is necessary when you reference this macro in rules (that is, use $&{bodytype}, not ${bodytype}).

[315] * BODY=BINARYMIME might be an option in the future.

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.