Auto-respond only if file exists

Peter Thomassen via Exim-users <[email protected]>
Newsgroups gmane.mail.exim.user
Organization a4a GmbH
Message-ID <[email protected]>
Hi,

A user has the following Exim filter:

# Exim filter
if personal alias [email protected]
then
   unseen mail
     subject "Automatic reply: $h_subject:"
     from "[email protected]"
     extra_headers "Content-Type: text/plain; charset=UTF-8"
     file ./.reply.msg
     once ./.reply
     once_repeat 7d
endif

I'd like this "mail" command to run only when the .reply.msg file exists, but wasn't able to figure out from the docs how to impose that condition.

(Without that condition, bounces are generated for the auto-response.)

I suspect that I could mimic the effect by writing "unseen noerror mail", but I'd prefer to avoid the response attempt in the first place if the file doesn't exist.

Thanks,
Peter

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.