diff options
Diffstat (limited to 'mail/pine4/files/patch-ai')
-rw-r--r-- | mail/pine4/files/patch-ai | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/mail/pine4/files/patch-ai b/mail/pine4/files/patch-ai index bd1b5bf4346c..dbf0aa6b88d0 100644 --- a/mail/pine4/files/patch-ai +++ b/mail/pine4/files/patch-ai @@ -1,66 +1,67 @@ -*** pine/send.c.orig Tue Feb 25 00:57:38 1997 ---- pine/send.c Sun Jul 20 02:50:31 1997 +*** pine/send.c.orig Wed Jul 1 21:32:53 1998 +--- pine/send.c Fri Jul 10 00:51:41 1998 *************** -*** 5352,5364 **** +*** 6616,6628 **** 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... - */ +! /* +! * 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 */ } } ---- 5352,5367 ---- +--- 6616,6632 ---- body->subtype = cpystr("octet-stream"); } -+ if(body->type == TYPETEXT) -+ 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... - */ +! 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 */ } } *************** -*** 6113,6119 **** +*** 7439,7445 **** switch (body->encoding) { /* all else needs filtering */ case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */ -! gf_link_filter(gf_8bit_qp); +! gf_link_filter(gf_8bit_qp, NULL); break; case ENCBINARY: /* encode binary into BASE64 */ ---- 6116,6123 ---- +--- 7443,7450 ---- switch (body->encoding) { /* all else needs filtering */ case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */ -! if(F_OFF(F_ENABLE_8BIT, ps_global)) -! gf_link_filter(gf_8bit_qp); +! 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 */ *************** -*** 6172,6178 **** - sprintf (*dst += strlen (*dst), "Content-Transfer-Encoding: %s\015\012", +*** 7506,7512 **** + sprintf (*dst += strlen (*dst),"Content-Transfer-Encoding: %s\015\012", body_encodings[(body->encoding == ENCBINARY) ? ENCBASE64 ! : (body->encoding == ENC8BIT) ? ENCQUOTEDPRINTABLE : (body->encoding <= ENCMAX) ? body->encoding : ENCOTHER]); ---- 6176,6182 ---- - sprintf (*dst += strlen (*dst), "Content-Transfer-Encoding: %s\015\012", +--- 7511,7517 ---- + sprintf (*dst += strlen (*dst),"Content-Transfer-Encoding: %s\015\012", body_encodings[(body->encoding == ENCBINARY) ? ENCBASE64 ! : (body->encoding == ENC8BIT && F_OFF(F_ENABLE_8BIT, ps_global)) |