Re: Auto-respond only if file exists

Viktor Dukhovni via Exim-users <[email protected]>
Newsgroups gmane.mail.exim.user
Message-ID <[email protected]>
On Tue, Aug 05, 2025 at 05:53:51PM +0200, Peter Thomassen via Exim-users wrote:

> 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

This filter is not a good idea.  It appears to fail to take into account
the essential requirements of RFC3834:

    <https://datatracker.ietf.org/doc/html/rfc3834>

in particular the exceptions listed in:

    <https://datatracker.ietf.org/doc/html/rfc3834#section-2>

and ensuring that auto-reply envelope sender is the NULL sender: <>.

So unless those requirements are built-in features of the filter syntax,
this filter MUST NOT be used without appropriate modifications.

-- 
    Viktor.  🇺🇦 Слава Україні!

-- 
## 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.