diff -r e6fd9cda9d54 -r 9e53becd92ce run-mailcap
--- a/run-mailcap Fri Jun 19 20:21:58 2009 -0400
+++ b/run-mailcap Fri Jun 19 20:24:03 2009 -0400
@@ -10,7 +10,7 @@
###############################################################################
-$debug=0;
+$debug=($ENV{RUN_MAILCAP_DEBUG} || 0);
$norun=0;
$etcmimetyp="/etc/mime.types";
$shrmimetyp="/usr/share/etc/mime.types";
@@ -355,6 +355,9 @@
}
}
+# in case run-mailcap is called from mailcap
+$ENV{RUN_MAILCAP_DEBUG} = 1 if $debug;
+
unless ($action) {
if ($0 =~ m!(^|/)view$!) { $action="view"; }
elsif ($0 =~ m!(^|/)see$!) { $action="view"; }
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]