summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-08-05 10:37:54 +0000
committeragc <agc@pkgsrc.org>1998-08-05 10:37:54 +0000
commite8b314fa0b208e19a0d04a7c3c90b9c65e58115f (patch)
tree4e46b22c14ff6ea875f4c5f9f5230bb461a9dac3 /mail
parentba2cd2353bc0cf9b20931c89cba120f2f6f0ba70 (diff)
downloadpkgsrc-e8b314fa0b208e19a0d04a7c3c90b9c65e58115f.tar.gz
Miscellaneous pine fixes forwarded to me by Matt Green.
Diffstat (limited to 'mail')
-rw-r--r--mail/pine/patches/patch-am20
-rw-r--r--mail/pine/patches/patch-an30
2 files changed, 50 insertions, 0 deletions
diff --git a/mail/pine/patches/patch-am b/mail/pine/patches/patch-am
new file mode 100644
index 00000000000..60ed853a611
--- /dev/null
+++ b/mail/pine/patches/patch-am
@@ -0,0 +1,20 @@
+Revision history
+
+==========================================
+Patches for Pine 4.02 from Pavel Kankovsky
+==========================================
+
+--- ./pine/mailpart.c.noparanoia Mon Jul 20 21:18:49 1998
++++ ./pine/mailpart.c Thu Jul 30 15:41:08 1998
+@@ -1230,7 +1230,10 @@
+
+ /* warning: overload "err" use */
+ if(err = rfc2231_get_param(param, att_name, NULL, NULL)){
+- strcpy(filename, err);
++ if (strlen(err) >= sizeof(filename))
++ strcpy(filename, "CAUTION! ORIGINAL FILENAME TOO LONG");
++ else
++ strcpy(filename, err);
+ fs_give((void **) &err);
+ }
+
diff --git a/mail/pine/patches/patch-an b/mail/pine/patches/patch-an
new file mode 100644
index 00000000000..536505b98ee
--- /dev/null
+++ b/mail/pine/patches/patch-an
@@ -0,0 +1,30 @@
+Revision history
+
+==========================================
+Patches for Pine 4.02 from Pavel Kankovsky
+==========================================
+
+--- pine/mailview.c.noparanoia Fri Jul 17 09:10:35 1998
++++ pine/mailview.c Thu Jul 30 22:11:46 1998
+@@ -940,7 +940,7 @@
+ sstrcpy(&p, body_type_names(type));
+ if(full && subtype){
+ *p++ = '/';
+- sstrcpy(&p, subtype);
++ sstrcpy(&p, strsquish(tmp_20k_buf + 500, subtype, 20));
+ }
+
+ switch(type) {
+@@ -1558,6 +1558,10 @@
+ }
+
+ gf_filter_init();
++ if(F_OFF(F_PASS_CONTROL_CHARS, ps_global)){
++ gf_link_filter(gf_escape_filter, NULL);
++ gf_link_filter(gf_control_filter, NULL);
++ }
+ gf_link_filter(gf_wrap, gf_wrap_filter_opt(width, width, 0, 0));
+ gf_link_filter(gf_line_test, gf_line_test_opt(quote_editorial, NULL));
+ return(gf_pipe(gc, pc));
+
+