Re: [exim] How to configure sieve filtering?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Kaz Kylheku
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] How to configure sieve filtering?

On Thu, 19 Aug 2010 16:45:14 -0400, Phil Pennock
<exim-users@???> wrote:
> On 2010-08-18 at 12:04 -0700, Kaz Kylheku wrote:
>> Anyway, all I did was transplant my configuration change,
>> exactly as I wrote it last night, from the
>> file under conf.d to the single configuration template.
>
> You really should take a look at: /usr/share/doc/exim4/README.Debian.gz


Nah, that document has a raw character count which exceeds the size of
Debian's scriptology surrounding Exim, and is less digestable.

I'm good now. Everything works.

The exim4 side of my config was patched like this:

Index: exim4/exim4.conf.template
===================================================================
--- exim4.orig/exim4.conf.template      2010-08-18 11:52:21.000000000
-0700
+++ exim4/exim4.conf.template   2010-08-18 12:33:37.000000000 -0700
@@ -1241,7 +1241,7 @@
   allow_filter
   forbid_smtp_code = true
   directory_transport = address_directory
-  file_transport = address_file
+  file_transport = address_file_forward
   pipe_transport = address_pipe
   reply_transport = address_reply
   skip_syntax_errors
@@ -1431,6 +1431,24 @@
   envelope_to_add
   return_path_add


+address_file_forward:
+  debug_print = "T: address_file_forward for $local_part@$domain"
+  driver = appendfile
+  delivery_date_add
+  envelope_to_add
+  return_path_add
+
+ maildir_format
+
+ directory = ${if eq{$address_file}{inbox} \
+                {$home/Maildir} \
+                {${if eq{${substr_0_1:$address_file}}{/} \
+                    {$address_file} \
+                    {${if match {$address_file}{^INBOX\.} \
+                        {${sg {$address_file} \
+                              {^(INBOX\.)(.*)\$}{$home/Maildir/.\$2}}}
\
+                        {$home/Maildir/$address_file}}}}}}
+
 #####################################################
 ### end transport/30_exim4-config_address_file
 #####################################################




The directory = line handles the translation of folder names
according to the pattern INBOX.Foo -> $home/Maildir/.Foo
Absolute names stay absolute, and all else is relative
to home. Comments, criticisms?

I'm using pysieved to manage the sieve scripts via
the managesive protocol, with the Roundcube managesieve
UI as a front end.