Re: [Exim] Vacation messages a plea from a list manager

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jonathan Haynes
Data:  
Para: exim-users
CC: exim-users
Assunto: Re: [Exim] Vacation messages a plea from a list manager
On Fri, 13 Aug 1999 11:27:36 +0100 Nigel Metheringham
<Nigel.Metheringham@???> wrote:

> There is a reasonably good example of how to do this in config sameple
> C006 in the FAQ - see http://www.exim.org/config.samples/C006
> My only gripe with it is that it *should* check that the recipient is
> in the headers by my personal prejudices - that filters out autoreplies
> where the recipient is on some form of list.
>


Isn't the easiest way to use a user-level forward file with the
'personal' command of exim's filter language, which does check headers?

From the filter spec :-

     The condition


       personal


is a shorthand for

       $header_to: contains $local_part@$domain and
       $header_from: does not contain $local_part@$domain and
       $header_from: does not contain server@ and
       $header_from: does not contain daemon@ and
       $header_from: does not contain root@ and
       $header_subject: does not contain "circular" and
       $header_precedence: does not contain "bulk"       



My only query with this is whether the header_precedence check
should also look for "list" and "junk" ?


When our users ask me about vacation messages I use the
following template structure to create one (or tell them to).
(where user@site and Real Name are to be replaced with appropriate
entries).

If anyone on the list can see a reason that this is a bad autoreply
filter please tell me (before too many of my users start using it!). I
am looking at automating the creation process (via a program on the
desktop or Web form etc.) so that users only have to enter the text of
their message and the filter will be created automatically. The message
text will also have 'This is an autoreply' at the top and 'if this was
sent badly please contact the postmaster' at the bottom. Making it
easier will of course mean more people will use it so I really need to
make sure that it is a mailsystem friendly autoreply and people on this
list have far more mail system experience than I do :)

---------------------------------------------------

# Exim filter file

if error_message then finish endif

logfile $home/vacation.log

if personal alias user@site then
mail
file vacation.msg
once vacation
log vacation.log
subject "Autoreply - your message to Real Name about $h_subject"
else
logwrite "$tod_full Non-personal message from $h_from - subject $h_subject
- not replied"
endif



------------------------------------------------------------------------------

                             J. R. Haynes
                          Network Team Leader


     Cranfield Computer Centre,          e-mail: J.Haynes@???
     Cranfield University,
     Wharley End,                        Tel: Bedford (01234) 754205 
     Cranfield,                               Bedford (01234) 750111 Extn 4205
     Beds.,                              Fax: Bedford (01234) 751814
     MK43 0AL.