rpopen (343B)
1 #!/bin/sh 2 3 if [ $# -lt 1 ]; 4 then 5 printf "usage: %s msgid\n" "$(basename $0)" 2>&1 6 exit 1 7 fi 8 9 if [ -z "$BROWSER" ]; 10 then 11 echo -n "\$BROWSER must be set to the command which invokes" 12 echo " your URL handler." 13 exit 1 14 fi 15 16 url=$(rpview "$@" | awk '/^URL:/ {print $2}' | tr -d '\r' | sort | uniq) 17 for i in $url 18 do 19 echo $i 20 $BROWSER "$i" 21 done 22