From: Ken Hornstein Date: Mon, 9 Jun 2014 16:00:17 +0000 (-0400) Subject: If "curl" is available, create a nmh-access-url entry that uses it. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/65b6af893904c32d92951fe8142f55e8bd74adff?ds=inline;hp=-c If "curl" is available, create a nmh-access-url entry that uses it. --- 65b6af893904c32d92951fe8142f55e8bd74adff diff --git a/etc/mhn.defaults.sh b/etc/mhn.defaults.sh index dbb38cd9..19ece281 100755 --- a/etc/mhn.defaults.sh +++ b/etc/mhn.defaults.sh @@ -312,6 +312,13 @@ if [ ! -z "$PGM" ]; then echo "mhshow-show-application/msword: %l$PGM %F" >> $TMP fi +# This entry is used to retrieve external-body types that use a "url" +# access-type. +PGM="`$SEARCHPROG $SEARCHPATH curl`" +if [ ! -z "$PGM" ]; then + echo "nmh-access-url: $PGM -L" >> $TMP +fi + # output a sorted version of the file sort < $TMP