summaryrefslogtreecommitdiffstats
path: root/mail/pine4
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-07-19 23:27:37 +0000
committerache <ache@FreeBSD.org>1997-07-19 23:27:37 +0000
commit862176fdd98652e3a37a1a849e4a7b0c95cbb703 (patch)
tree2c1366d4c2ab632716df6a9ff96d37d5d8677819 /mail/pine4
parent23544f8e06f536df064b11af941e732b4001b1df (diff)
downloadFreeBSD-ports-862176fdd98652e3a37a1a849e4a7b0c95cbb703.zip
FreeBSD-ports-862176fdd98652e3a37a1a849e4a7b0c95cbb703.tar.gz
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')
-rw-r--r--mail/pine4/files/patch-ai38
-rw-r--r--mail/pine4/files/patch-aj17
2 files changed, 52 insertions, 3 deletions
diff --git a/mail/pine4/files/patch-ai b/mail/pine4/files/patch-ai
index 8d9ab18..bd1b5bf 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 0000000..9a9d853
--- /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>
OpenPOWER on IntegriCloud