From 80463369101eb6fed6e4d5a18c416c6df1cc25a1 Mon Sep 17 00:00:00 2001 From: kim Date: Sat, 6 Mar 1999 20:37:32 +0000 Subject: patch-cc: fix missing "-file" switch for mhshow when displaying files (e.g. after composing a mime message you wanted to view it, or you got a message/rfc822 attachment you wanted to view) patch-cd: fix missing newline in strings generated by dctime (with snprintf need to account for an extra character: the trailing null; fixes problems with mhl and packf) --- mail/nmh/patches/patch-cc | 20 ++++++++++++++++++++ mail/nmh/patches/patch-cd | 13 +++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 mail/nmh/patches/patch-cc create mode 100644 mail/nmh/patches/patch-cd (limited to 'mail') diff --git a/mail/nmh/patches/patch-cc b/mail/nmh/patches/patch-cc new file mode 100644 index 00000000000..25dfa0e8644 --- /dev/null +++ b/mail/nmh/patches/patch-cc @@ -0,0 +1,20 @@ +$NetBSD: patch-cc,v 1.1 1999/03/06 20:37:32 kim Exp $ + +--- uip/show.c.orig Thu Dec 3 18:22:07 1998 ++++ uip/show.c Sat Mar 6 14:55:52 1999 +@@ -315,6 +315,15 @@ + vec[vecp] = NULL; + } + ++ /* If the "proc" is "mhshow", add "-file" if showing file or draft. ++ * Ruud de Rooij Wed, 24 Feb 1999 19:31:40 +0100 ++ */ ++ if (strcmp (r1bindex (proc, '/'), "mhshow") == 0 && (draftsw || file) ) { ++ vec[vecp] = vec[vecp - 1]; ++ vec[vecp - 1] = "-file"; ++ vec[++vecp] = NULL; ++ } ++ + /* + * If "proc" is mhl, then run it internally + * rather than exec'ing it. diff --git a/mail/nmh/patches/patch-cd b/mail/nmh/patches/patch-cd new file mode 100644 index 00000000000..de8b6c229b6 --- /dev/null +++ b/mail/nmh/patches/patch-cd @@ -0,0 +1,13 @@ +$NetBSD: patch-cd,v 1.1 1999/03/06 20:37:32 kim Exp $ + +--- zotnet/tws/dtime.c.orig Sun Jul 12 16:16:33 1998 ++++ zotnet/tws/dtime.c Sat Mar 6 15:17:04 1999 +@@ -247,7 +247,7 @@ + char * + dctime (struct tws *tw) + { +- static char buffer[25]; ++ static char buffer[26]; + + if (!tw) + return NULL; -- cgit v1.2.3