*** pine/send.c.orig Wed Aug 12 19:00:10 1998 --- pine/send.c Wed Aug 12 19:49:04 1998 *************** *** 6673,6685 **** body->subtype = cpystr("octet-stream"); } ! /* ! * Apply maximal encoding regardless of previous ! * setting. This segment's either not text, or is ! * unlikely to be readable with > 30% of the ! * text encoded anyway, so we might as well save space... ! */ ! new_encoding = ENCBINARY; /* > 30% 8 bit chars */ } } --- 6673,6689 ---- body->subtype = cpystr("octet-stream"); } ! if(body->type == TYPETEXT) ! /* Use ENC8BIT rather than ENCBINARY for TEXT */ ! new_encoding = ENC8BIT; ! else ! /* ! * Apply maximal encoding regardless of previous ! * setting. This segment's either not text, or is ! * unlikely to be readable with > 30% of the ! * text encoded anyway, so we might as well save space... ! */ ! new_encoding = ENCBINARY; /* > 30% 8 bit chars */ } } *************** *** 7499,7505 **** switch (body->encoding) { /* all else needs filtering */ case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */ ! gf_link_filter(gf_8bit_qp, NULL); break; case ENCBINARY: /* encode binary into BASE64 */ --- 7503,7510 ---- switch (body->encoding) { /* all else needs filtering */ case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */ ! if(F_OFF(F_ENABLE_8BIT, ps_global)) /* unless 8BIT enabled */ ! gf_link_filter(gf_8bit_qp, NULL); break; case ENCBINARY: /* encode binary into BASE64 */ *************** *** 7582,7588 **** && !(so_puts(so, "Content-Transfer-Encoding: ") && so_puts(so, body_encodings[(body->encoding==ENCBINARY) ? ENCBASE64 ! : (body->encoding == ENC8BIT) ? ENCQUOTEDPRINTABLE : (body->encoding <= ENCMAX) ? body->encoding --- 7587,7593 ---- && !(so_puts(so, "Content-Transfer-Encoding: ") && so_puts(so, body_encodings[(body->encoding==ENCBINARY) ? ENCBASE64 ! : (body->encoding == ENC8BIT && F_OFF(F_ENABLE_8BIT, ps_global)) ? ENCQUOTEDPRINTABLE : (body->encoding <= ENCMAX) ? body->encoding