[Dovecot] Released Pigeonhole v0.3.1 for Dovecot v2.1.6

Stephan Bosch stephan at rename-it.nl
Sun May 27 18:42:49 EEST 2012


Op 5/27/2012 3:00 PM, Daniel Parthey schreef:
> Hi Ed,
>
> Ed W wrote:
>> I have groups of users where we have a predefined
>> bunch of filtering that happens on their account. At the moment the
>> users are grouped into top level directories so that the "home" and
>> hence default scripts can cascade down.  However, it means it's not
>> trivial to adjust the grouping of the users and requires on disk
>> placement to be meaningful.  I would desire to find a way of when
>> Postfix delivers a mail for a user X that this will run a bunch of
>> predefined filtering scripts which are per-user, plus the users
>> normal scripts.  All scripts would normally live on disk
>>
>> Perhaps this is actually more easily done a different way?
> Would it be possible to do conditional includes in
> the global "before" script, something like this?
>
> if domain :matches "foo.example.org" {
>    include "foo.sieve"
> }
> elsif domain :matches "bar.example.org" {
>    include "bar.sieve"
> }

Including from global to local is not a good idea:

1) if the script is missing (user deletes it through managesieve) 
delivery fails.

2) Included scripts are currently always incorporated in the global 
binary. This means that it is not possible to pre-compile the global binary.

I have some plans to make this possible, but so far this situation is 
best avoided.

Regards,

Stephan.



More information about the dovecot mailing list