head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.16 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.14 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.12 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.10 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.8 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.6 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.4 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.2 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.3.0.42 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.40 pkgsrc-2008Q1:1.3.0.38 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.36 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.34 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.32 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.30 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.28 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.26 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.24 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.22 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.20 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.18 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.16 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.14 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.12 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.10 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.8 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.6 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.4 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.2 netbsd-1-6-1-base:1.3 buildlink2-base:1.2 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1 netbsd-1-4-PATCH001:1.1 netbsd-1-4-RELEASE:1.1; locks; strict; comment @# @; 1.4 date 2008.08.08.23.41.22; author epg; state dead; branches; next 1.3; 1.3 date 2002.10.15.10.47.00; author agc; state Exp; branches; next 1.2; 1.2 date 2000.03.02.00.23.15; author hubertf; state dead; branches; next 1.1; 1.1 date 99.03.07.19.39.19; author kim; state Exp; branches; next ; desc @@ 1.4 log @- Update from 1.0.4 (Apr 2000) to 1.3 (Jun 2008) (whew!). - many bug fixes - MM_CHARSET no longer needed; now uses iconv to decode RFC2047-encoded headers and convert to current locale. - various MIME improvements - Take maintainership (ok'd by kim@@). - Replace DESCR with text from web site. - Support user-destdir. - Use --with-hash-backup instead of hacking config.h post-configure. - Drop IRIX-specific part of fmt_scan.c patch-cd, and therefore drop patch-ck and IRIX bits in Makefile. - A tmac.h conf file (wtf?) is no longer installed. - Update what's installed to share/doc/nmh. - Update PLIST for added/removed/renamed files. - Patches: - Update patch-ca and patch-cd. - Remove errno patches, upstream since XXX: patch-aa, patch-ab, patch-ad, patch-ae, patch-ag, patch-ah, patch-ai, patch-aj, patch-ak, patch-al, patch-am, patch-an patch-ao, patch-ap, patch-aq, patch-ar, patch-as, patch-at, patch-au, patch-av, patch-aw, patch-ax, patch-az, patch-ba, patch-bb, patch-bc, patch-bd, patch-be, patch-bf, patch-bg, patch-bh, patch-bi - patch-aa also had a patch for some fgetstr problem on NetBSD which no longer seems to happen. - Remove patch-cb; GCOS_HACK is referenced nowhere in nmh code (only apparently outdated docs) or in any other pkgsrc patch; HAVE_SYS_PARAM_H is already elsewhere in config.h, and sys/param.h is included in nmh.h. - Remove patch-ce (http://savannah.nongnu.org/bugs/?1393 fixed in uip/sortm.c r1.7). - Remove patch-ci (fixed in uip/show.c r1.6). - Remove patch-cj; $(etcdir)/tmac.h is gone and the folders/flists problems were fixed (differently) in 2000. - Remove patch-ck (CPPFLAGS support for the IRIX-specific part of patch-cd. @ text @$NetBSD: patch-ce,v 1.3 2002/10/15 10:47:00 agc Exp $ Robert Elz's PR 18664 contains the rationale for this patch: A bug report (from Scott Lipcon) was submitted elsewhere: http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=1393&group_id=2166 and then today copied to the nmh-workers list. Basically, using "sortm -textfield subject" where a message in the folder contains "Subject:N" where "N" is alphanumeric will cause sortm to dump core (the "korean spam" aspect of the mail that caused the original bug report is irrelevant). >How-To-Repeat: Use nmh. Put a message in a folder that contains "Subject:1234" and then run sortm +whatever-folder -textfield subject and watch for the core dump. Or, examine the code and be amazed ... --- uip/sortm.c 2000/02/04 20:28:24 1.3 +++ uip/sortm.c 2002/10/15 10:38:32 @@@@ -439,9 +439,12 @@@@ if(uprf(cp, "re:")) cp += 2; else { +#if 0 if (isalnum(c)) *cp2++ = isupper(c) ? tolower(c) : c; +#else break; +#endif } } cp++; @ 1.3 log @Fix from Robert Elz in PR 18664 to stop sortm coredumping when there's a numerical subject. "And yes, this really does add a preprocessor conditional that makes either one of two original statements get compiled, and the other omitted (ie: the patch is correct, though just deleting a line would work as well). The "#if 0" could become "#if 1" and the core dump would also be gone, though the results of the sort would then sometimes be rather hard to explain..." Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to V1.0.3, per request of our security officers: Versions prior to 1.0.3 of the nmh package contained a vulnerability where incoming mail messages with carefully designed MIME headers could cause nmh's mhshow command to execute arbitrary shell code. See the changelog for another 372 lines of changes. @ text @d1 1 a1 1 $NetBSD: patch-ce,v 1.1 1999/03/07 19:39:19 kim Exp $ d3 34 a36 15 --- uip/mhshowsbr.c.orig Wed Sep 9 16:59:17 1998 +++ uip/mhshowsbr.c Sun Mar 7 14:14:59 1999 @@@@ -509,10 +509,11 @@@@ read (fileno (stdout), prompt, sizeof(prompt)); } SIGNAL (SIGINT, istat); - if (intr != OK) { + if (intr != OK || prompt[0] == 'n') { (*ct->c_ceclosefnx) (ct); return (alternate ? DONE : NOTOK); } + if (prompt[0] == 'q') done(OK); } } @ 1.1 log @Make mhshow look at the user input for "Press to show..." (like MH 6.8.4 did). The responses checked for (first letter) are: - "n" skips the next content (i.e. "no") - "q" exits mhshow immediately (i.e. "quit") @ text @d1 1 a1 1 $NetBSD$ @