ports/105978: nmh prints postscript attachments by default
Brad Huntting
huntting at glarp.com
Tue Nov 28 21:14:02 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list