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 | |
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.
Notes
Notes:
svn path=/head/; revision=7378
Diffstat (limited to 'mail')
-rw-r--r-- | mail/pine4/files/patch-ai | 38 | ||||
-rw-r--r-- | mail/pine4/files/patch-aj | 17 |
2 files changed, 52 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 diff --git a/mail/pine4/files/patch-aj b/mail/pine4/files/patch-aj new file mode 100644 index 000000000000..9a9d853c0b35 --- /dev/null +++ b/mail/pine4/files/patch-aj @@ -0,0 +1,17 @@ +*** imap/ANSI/c-client/os_bsi.h.bak Wed Feb 7 12:01:07 1996 +--- imap/ANSI/c-client/os_bsi.h Sun Jul 20 01:47:23 1997 +*************** +*** 36,42 **** +--- 36,47 ---- + #include <stdlib.h> + #include <string.h> + #include <sys/types.h> ++ #ifdef __FreeBSD__ ++ #include <dirent.h> ++ #define direct dirent ++ #else + #include <sys/dir.h> ++ #endif + #include <sys/uio.h> /* needed for writev() prototypes */ + #include <fcntl.h> + #include <syslog.h> |