- if ((*text_plain_ct)->c_reqencoding == CE_UNKNOWN &&
- strcasecmp (charset, "US-ASCII")) {
- /* Assume that 8bit is sufficient (for text). */
- (*text_plain_ct)->c_reqencoding = CE_8BIT;
+ if ((*text_plain_ct)->c_reqencoding == CE_UNKNOWN) {
+ /* Assume that 8bit is sufficient (for text). In other words,
+ don't allow it to be encoded as quoted printable if lines
+ are too long. This also sidesteps the check for whether
+ it needs to be encoded as binary; instead, it relies on
+ the applicable mhbuild-convert-text directive to ensure
+ that the resultant text is not binary. */
+ (*text_plain_ct)->c_reqencoding =
+ eightbit ? CE_8BIT : CE_7BIT;