]> diplodocus.org Git - nmh/commitdiff
If "curl" is available, create a nmh-access-url entry that uses it.
authorKen Hornstein <kenh@pobox.com>
Mon, 9 Jun 2014 16:00:17 +0000 (12:00 -0400)
committerKen Hornstein <kenh@pobox.com>
Mon, 9 Jun 2014 16:00:17 +0000 (12:00 -0400)
etc/mhn.defaults.sh

index dbb38cd9bcf41c538ef9a5695d92aa5445f63de8..19ece281ac459e40fe38cc190b2361ea76bff5ed 100755 (executable)
@@ -312,6 +312,13 @@ if [ ! -z "$PGM" ]; then
        echo "mhshow-show-application/msword: %l$PGM %F" >> $TMP
 fi
 
        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
 
 # output a sorted version of the file
 sort < $TMP