Hadmut Danisch via dovecot <dovecot@dovecot.org> writes:
Hi,
can dovecot sieve query any external database ( berkeley database file, rest api, whatever) to determine the target folder by sender address?
dovecot alone cannot do this.
But I believe that you can do in your sieve file:
--8<---------------cut here---------------start------------->8--- require [ "vnd.dovecot.execute", "vnd.dovecot.pipe" ,"vnd.dovecot.filter", "fileinto" ] // I do not know if all vnd.* are really needed execute :pipe :output "calculated_mailbox" "fancy_script.sh" [ "parameter1" , "parameter2" , ... ] ; fileinto "${calculated_mailbox}"; --8<---------------cut here---------------end--------------->8---
and your "fancy_script" can do anything you want. Be aware, that dovecot enforces timeout for script.
KJ
-- http://wolnelektury.pl/wesprzyj/teraz/ How long does it take a DEC field service engineer to change a lightbulb?
It depends on how many bad ones he brought with him.