Hey Gang!
Can someone take a look at this code, I've stared at it for four hours
(and amended it several times until its present form).
It's not working, but syntactically I believe it's OK. Ack...
VERBOSE=ON
MAILDIR=/var/mail
PMDIR=$HOME/Procmail
LOGFILE=$HOME/Procmail/log
FILEDIR=$HOME/autores
#Deal with the mail loop issue first
:0
* !^FROM_DAEMON
* !^x-Loop: my_user(_at_)dufus(_dot_)net
{
#Inform sender that address has changed using info.txt
:0 h c
| (formail -rt -A "Precedence: junk" \
-A "X-Loop: my_user(_at_)dufus(_dot_)net" ; \
cat $FILEDIR/info.txt) \
| $SENDMAIL -t
#now forward the mail to the user's new address
:0 c
! my_user(_at_)other_address(_dot_)com
}
#great, except it's not working at all (:
Any ideas anyone?
Regards,
-Colin