Re: [exim] Sieve filtering setup

Startseite
Nachricht löschen
Nachricht beantworten
Autor: B. Johannessen
Datum:  
To: exim-users
Betreff: Re: [exim] Sieve filtering setup
On 31/05/10 15:37, Simon Friedberger wrote:
> OK, to state a simple goal: I want the implicit keep to work with
> maildirs.


This is what I use. ${extract{home}{EXIM_RCPT}} returns the users home
directory. The rest should be easy enough to understand if you re-format it.


    Bob


begin transports

sieve:
         driver = appendfile
         directory = ${extract{home}{EXIM_RCPT}}/Maildir${if 
match{$address_file}{\N^[Ii][Nn][Bb][Oo][Xx]$|\/|\.\.|\|\N}{/}{${sg 
{$address_file}{\N^(\.|[Ii][Nn][Bb][Oo][Xx]\.)?(.*)$\N}{/.\$2}}}}
         maildir_use_size_file = true
         maildir_format = true
         create_directory = true
         maildirfolder_create_regex = /\.[^/]+$
         delivery_date_add
         envelope_to_add
         return_path_add