Re: [Exim] Sieve filters and vacation msgs

Pàgina inicial
Delete this message
Reply to this message
Autor: Matthew Byng-Maddick
Data:  
A: exim-users
Assumpte: Re: [Exim] Sieve filters and vacation msgs
On Mon, Jun 21, 2004 at 01:47:07PM +0200, Michael Haardt wrote:
> Implementing vacation does not look to be hard at first, but you need
> to work out where to store the address databases. Note that there must
> be one database per vacation command, not one at all. Also think about
> how to clean them up when sieve scripts change.


My approach to this was:
| vacation_response:
|     # auto response
|     driver      = redirect
|     domains     = ...
|     condition   = ${if exists{/path/to/vacation/${lc:$local_part}} {yes}{no}}
|     data        = "# Exim filter\nif personal then mail from \"$local_part@$domain\" to \"\$reply_address\" subject \"Auto-response: re: \$h_subject:\" file \"/path/to/vacation/${lc:$local_part}\" once \"/path/to/vacation-db/\${md5:\${readfile {/path/to/vacation/${lc:$local_part}}}}\" once_repeat 1w endif"
|     allow_filter= true
|     user        = EXIM_UID
|     verify      = false
|     reply_transport=reply


ie, the databasename is the md5sum of the text.

MBM

--
Matthew Byng-Maddick          <mbm@???>           http://colondot.net/
                      (Please use this address to reply)