From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 28 21:14:02 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBCB216A505 for ; Tue, 28 Nov 2006 21:14:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7655A43DBB for ; Tue, 28 Nov 2006 21:10:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kASLATqo007249 for ; Tue, 28 Nov 2006 21:10:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kASLATE5007248; Tue, 28 Nov 2006 21:10:29 GMT (envelope-from gnats) Resent-Date: Tue, 28 Nov 2006 21:10:29 GMT Resent-Message-Id: <200611282110.kASLATE5007248@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Brad Huntting Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7672E16A4CE for ; Tue, 28 Nov 2006 21:06:16 +0000 (UTC) (envelope-from huntting@glarp.com) Received: from antediluvian.glarp.com (71-211-143-233.hlrn.qwest.net [71.211.143.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D1143CBA for ; Tue, 28 Nov 2006 21:02:58 +0000 (GMT) (envelope-from huntting@glarp.com) Received: from antediluvian.glarp.com (localhost [127.0.0.1]) by antediluvian.glarp.com (8.13.8/8.13.6) with ESMTP id kASL2oZp042100 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NOT); Tue, 28 Nov 2006 14:02:50 -0700 (MST) (envelope-from huntting@antediluvian.glarp.com) Received: (from huntting@localhost) by antediluvian.glarp.com (8.13.6/8.13.6/Submit) id kASL2o3w042099; Tue, 28 Nov 2006 14:02:50 -0700 (MST) (envelope-from huntting) Message-Id: <200611282102.kASL2o3w042099@antediluvian.glarp.com> Date: Tue, 28 Nov 2006 14:02:50 -0700 (MST) From: Brad Huntting To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: huntting@glarp.com Subject: ports/105978: nmh prints postscript attachments by default X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Brad Huntting List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 21:14:02 -0000 >Number: 105978 >Category: ports >Synopsis: nmh prints postscript attachments by default >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 28 21:10:24 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Brad Huntting >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD antediluvian.glarp.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The default behavior for nmh when viewing a message with an application/PostScript attachment is to 'lpr -Pps' the attachment. This behavior can be overridden with a per-user $MHN file or by editing /usr/local/etc/nmh/mhn.defaults after nmh is installed. However, as a default action, (one which will be used by novice users) sending a postscript attachment to the printer every time a message is viewed at is simply a bad idea. >How-To-Repeat: Install nmh. Send yourself a postscript attachment. 'inc' it into your MH inbox, 'show' it. >Fix: The following patch adds a patch to the port to fix this: diff -Pru /usr/ports/mail/nmh/files/patch-etc_mhn.defaults.sh nmh/files/patch-etc_mhn.defaults.sh --- /usr/ports/mail/nmh/files/patch-etc_mhn.defaults.sh Wed Dec 31 17:00:00 1969 +++ nmh/files/patch-etc_mhn.defaults.sh Tue Nov 28 13:45:10 2006 @@ -0,0 +1,19 @@ +--- etc/mhn.defaults.sh.orig Tue Apr 11 18:25:23 2000 ++++ etc/mhn.defaults.sh Tue Nov 28 13:44:27 2006 +@@ -111,16 +111,6 @@ + echo "mhshow-show-video/mpeg: %p$PGM '%f'" >> $TMP + fi + +-PGM="`$SEARCHPROG $SEARCHPATH lpr`" +-if [ ! -z "$PGM" ]; then +- echo "mhshow-show-application/PostScript: %plpr -Pps" >> $TMP +-else +- PGM="`$SEARCHPROG $SEARCHPATH lp`" +- if [ ! -z "$PGM" ]; then +- echo "mhshow-show-application/PostScript: %plp -dps" >> $TMP +- fi +-fi +- + PGM="`$SEARCHPROG $SEARCHPATH ivs_replay`" + if [ ! -z "$PGM" ]; then + echo "mhshow-show-application/x-ivs: %p$PGM -o '%F'" >> $TMP >Release-Note: >Audit-Trail: >Unformatted: