I run into a problem when I try to check for a file. Here's what I have...
:0 afh
* ? test -f $MAILDIR/$INFO
| cat - $MAILDIR/$INFO 2>&1 | $SENDMAIL -oi -t
:0 efhw
| formail -ri "Subject: Error!"
:0 afh
| cat - $MAILDIR/bad 2>&1 | $SENDMAIL -oi -t
I am trying to make it catch the error if there is no such file, and send a
different message, "bad." But it doesn't seem to work. Any help would be
appreciated! I am a newbie to procmail.
Another Message From...
/-----------------------------------------------\
/oOo\ Kruel /oOo\
\oOo/ darin(_at_)ktb(_dot_)net \oOo/
\-----------------------------------------------/