[Fwd: Re: [exim] Sieve Filters] handling of inbox.xyx.uvw...

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Rainer Sigl
日付:  
To: exim-users
題目: [Fwd: Re: [exim] Sieve Filters] handling of inbox.xyx.uvw...
Hi everybody,
in the meantime I learnt some things:
Sieve Filterfiles don't work with file that contain CRLF instead only of
LF (\r\n). With such a file from a not unix environment I got 'syntax
error' while testing the file with exim4 -bf ....
I'm working with exim 4.50-8 with debian .

The inbox-handling with a construction like
address_file:
...
directory = ${if eq{$address_file}{inbox} \
      {/home/virtual_mail/${lookup pgsql {PGSQL_Q_BOXNAME}{$value}}/}}
maildir_format
...
works fine but:
how to handle inbox with subdirs such as inbox.xyz.uvw???
A construction to isolate the subdirs out of $address_file  such as
${sg {$address_file}{inbox}{}} and adding this to the path of the
mailbox leads to "appendfile: file or directory name "" is not absolute".


Many thanks
Rainer Sigl

-------- Original Message --------
Subject: Re: [exim] Sieve Filters
Date: Tue, 26 Jul 2005 17:04:21 +0200
From: Michael Haardt <michael@???>
To: exim-users@???
References: <00bd01c591ea$14f4ced0$2f89b782@???>

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

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

-- 
-----------------
Rainer Sigl,                      | email: sigl@???
MPI f. extraterrestrische Physik, | phone: +49 (89) 30000-3557
Postfach 1312,                    | fax:   +49 (89) 30000-3569
D-85741 Garching, Germany         | web:   http://www.mpe.mpg.de/~sigl/