fetch(1) is part of the base system, so it's guaranteed to always be there.
And it is more likely to have been configured for any local site
customizations (local caches, proxies, etc).
# 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
+case "`uname`" in
+ FreeBSD)
+ echo "nmh-access-url: fetch -a" >> $TMP
+ ;;
+ *)
+ PGM=`$SEARCHPROG "$SEARCHPATH" curl`
+ if [ ! -z "$PGM" ]; then
+ echo "nmh-access-url: $PGM -L" >> $TMP
+ fi
+ ;;
+esac
# output a sorted version of the file
sort < $TMP