This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
paste-manager/apimail.sh

14 lines
348 B
Bash
Executable File

#!/bin/sh
DIR="/var/www/p0m.fr/paste/"
tmpfile=`mktemp`
cat <&0 > $tmpfile
from=`cat "$tmpfile" | formail -x From | tail -n 1 | $DIR/conv2047-0.1.pl -d`
subject=`cat "$tmpfile" | formail -x subject | $DIR/conv2047-0.1.pl -d`
cat "$tmpfile" | $DIR/apimail.php "$from" "$subject"
#chmod +r `cat "$tmpfile" | $DIR/apimail.php "$from" "$subject"`