1
0
I'm not sure how to set up Dovecot to use SQL database for sieve storage. So far I found Pigeonhole with this tutorial - https://wiki.dovecot.org/Pigeonhole/Sieve/Configuration/Dict
From what I understand the idea here is to use dictionary with Sieve scripts stored in SQL database. But one sentence is not clear from me
As with the flat file, the database query will need to return the Sieve script all in one line, otherwise the subsequent lines will be ignored.
So in that case is it possible to retrieve only sieve scripts for given email? I'm trying to find a way to have let say 100 different scripts for 100 different emails. So some would look like this:
require ["envelope", "fileinto", "mailbox"];
if envelope "To" "personal@example.com"
{
fileinto :create "Personal";
}
another like that
require ["envelope", "fileinto", "mailbox"];
if envelope "To" "office@example.com"
{
redirect :copy "office@example.net";
}
But always To
would be different.