Re: [exim] Sieve Filters

Pàgina inicial
Delete this message
Reply to this message
Autor: Michael Haardt
Data:  
A: exim-users
Assumpte: Re: [exim] Sieve Filters
On Tue, Jul 26, 2005 at 03:58:20PM +0200, Rainer Sigl wrote:
> Hi everybody,
> I'd like to use sieve-filters with exim4. But there rise 2 Problems for me:
> 1. if I set a simple filterfile with
>    #Sieve filter
>    require "fileinto";
>    fileinto "inbox";
> and I test the file with
> exim4 -bf testfilter < testmessage
> I get a syntax error for line 2, if I cancel line 2 (require...) an
> errormessage comes up that the require-statement isn't here.


Did you quote the exact filter contents? The above works for me.
Which version do you use?

> 2. How to learn my exim4.conf the 'inbox'? I have built an Environment with
> virtual users which are hosted in a mysql database.


The example from doc/README.SIEVE might help to get the idea:

begin transports

localuser:
  driver = appendfile
  file = ${if eq{$address_file}{inbox} \
              {/var/mail/$local_part} \
              {${if eq{${substr_0_1:$address_file}}{/} \
                    {$address_file} \
                    {$home/mail/$address_file} \
              }} \
         }
  delivery_date_add
  envelope_to_add
  return_path_add
  mode = 0600


Absolute files are stored where specified, relative files are stored
relative to $home/mail and "inbox" goes to the standard mailbox location.

Michael