chiark / gitweb /
pwhich: Portability fix, picked up by 'posh'.
[bin.git] / Rnmail-wrapper
1 #! /bin/sh
2
3 if grep '^From:.*Kamion' $2; then
4   get-sig afe > ~/.mail_sig
5 else
6   get-sig general > ~/.mail_sig
7 fi
8
9 if [ "X$1" = X-h ] && grep '^In-Reply-To: ' $2 > /dev/null; then
10   echo ""
11   echo -n "Remove original poster's .signature (if present)? [yn] "
12   read ans
13   case $ans in
14     n*) ;;
15     *)  sed -n -e "/^$QUOTECHARS-- \$/q" -e p $2 | sponge $2
16         ;;
17   esac
18 fi
19
20 exec /usr/bin/Rnmail "$@"