diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-07-19 23:27:37 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-07-19 23:27:37 +0000 |
commit | df8ac976a669d7cd53e6703c975c4fb17902ba8e (patch) | |
tree | 5901a01cd4adec1c0a09c18df5861243d5b20538 /mail/pine4/files/patch-ai | |
parent | Fix http address in DESCR (diff) |
1) sys/dir -> dirent
2) Do not convert 8bit to binary for large text messages with many 8bit chars,
it cause large Russian mail to be always BASE64 encoded.
Diffstat (limited to 'mail/pine4/files/patch-ai')
-rw-r--r-- | mail/pine4/files/patch-ai | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/mail/pine4/files/patch-ai b/mail/pine4/files/patch-ai index 8d9ab18bd580..bd1b5bf4346c 100644 --- a/mail/pine4/files/patch-ai +++ b/mail/pine4/files/patch-ai @@ -1,5 +1,37 @@ *** pine/send.c.orig Tue Feb 25 00:57:38 1997 ---- pine/send.c Wed Mar 26 04:27:59 1997 +--- pine/send.c Sun Jul 20 02:50:31 1997 +*************** +*** 5352,5364 **** + 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 */ + } + } + +--- 5352,5367 ---- + 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... + */ +! new_encoding = ENCBINARY; /* > 30% 8 bit chars */ + } + } + *************** *** 6113,6119 **** @@ -9,7 +41,7 @@ break; case ENCBINARY: /* encode binary into BASE64 */ ---- 6113,6120 ---- +--- 6116,6123 ---- switch (body->encoding) { /* all else needs filtering */ case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */ @@ -27,7 +59,7 @@ ? ENCQUOTEDPRINTABLE : (body->encoding <= ENCMAX) ? body->encoding : ENCOTHER]); ---- 6173,6179 ---- +--- 6176,6182 ---- sprintf (*dst += strlen (*dst), "Content-Transfer-Encoding: %s\015\012", body_encodings[(body->encoding == ENCBINARY) ? ENCBASE64 |