Op 5/27/2012 3:00 PM, Daniel Parthey schreef:
Hi Ed,
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
Ed W wrote: 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:
if the script is missing (user deletes it through managesieve) delivery fails.
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.