procmail
[Top] [All Lists]

Re: Cancel processing of .procmailrc if autoresponder textfile isn't available

1997-08-03 09:24:00
        Author: Lucas Hummig <webmaster(_at_)hummig(_dot_)de>
        Date: Sun, 3 Aug 1997 07:58:05 +-200
        Message-ID: 
<01BCA006(_dot_)60729060(_at_)p40b133(_dot_)M(_dot_)dip(_dot_)t-online(_dot_)de>

I would need to setup my .procmailrc-file only answering emails, if the
textfile for autoresponding is really available. In case the specified
textfile isn't available, currently an email is sent out with headers, and
- of course - no message. It is possible to setup .procmailrc to abort
processing, if the specified textfile isn't available, so NO answer is
sent?

I believe this would do that...


FILE=/path/to/file

:0ch
* ? test -f $FILE
[rest of recipe]

TjL

<Prev in Thread] Current Thread [Next in Thread>