Hook after creating new maildir in dovecot (run shell script)
Is there a way to create some hook after creating mailbox in dovecot to
create some sieve scripts?
I need to create files: .dovecot.sieve, sieve/filters.sieve (empty),
sieve/vacation.sieve (empty).
$ cat .dovecot.sieve
include :personal :once "vacation";
include :personal :once "filters";
From doc I know that I can get .dovecot.sieve created via
# If the user has no personal active script (i.e. if the file
# indicated in sieve= does not exist), use this one:
sieve_global_path = /var/lib/dovecot/sieve/default.sieve
But the trouble is that files sieve/filters.sieve and sieve/vacation.sieve
MUST exist according to RFC. So I'm looking for a hook which create these
files after creating new maildir via calling simple touch in bash script
(I don't wan't to have cron script which would do it).
PS: Newer RFC draft (tools.ietf.org/html/draft-ietf-sieve-include-15)
specify an option :optional, but it's not implemented in my version of
dovecot / manage-sieve.
No comments:
Post a Comment