Ian Chilton has this code and wants to know why an auto-reply is never sent:
| :0
| * ^X-ApparentlyTo: ian
| *!^FROM_DAEMON
| *!^X-Loop:ian(_at_)chiltons(_dot_)u-net(_dot_)com
| {
| :0:
| /var/spool/mail/ianmail
There's the culprit, right there. That recipe needs a `c' flag so that
procmail will file a *copy* of the message in that folder and still read more
recipes to know how to deliver the original. This way procmail files the
original in that folder, believes that its work is done, and exits.
| :0a
| |(formail -r -a "Precedence: junk"\
| -I"From: Auto Reply from Ian Chilton
<ian(_at_)chiltons(_dot_)u-net(_dot_)com> " \
| -I"Subject: Delivery Successful" \
| -A "X-Loop: ian(_at_)chiltons(_dot_)u-net(_dot_)com";\
| cat /root/.procmail/reply.txt ) |$SENDMAIL -t
| }