PowerBrowsing > PbProjects > ProcMailRc
This is an example .procmailrc which lets you automatically answer any email with Subject: "cinemaz", sending the result of the cinema.pl script.
Note that, in this case, the script is stored inside $HOME/procmail dir.
# Please check if all the paths in PATH are reachable, remove the ones that # are not. PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:. MAILDIR=$HOME/Mail # You'd better make sure it exists DEFAULT=$MAILDIR/mbox LOGFILE=$MAILDIR/from LOCKFILE=$HOME/.lockmail SENDMAIL=/usr/sbin/exim :0 * ^Subject: cinemaz * !^X-Loop: yourmail@yourdomain.com * !^FROM_DAEMON |(formail -rA "X-Loop: yourmail@yourdomain.com";cd $HOME/procmail;perl cinema.pl) | $SENDMAIL -oi -t