On Thu, 2009-09-10 at 17:42 +0200, Emmanuel Gonzalez wrote:
quota_warning = storage=95%% /usr/local/bin/quota-warning.sh 95 quota_warning2 = storage=80%% /usr/local/bin/quota-warning.sh 80 quota_warning3 = storage=70%% /usr/local/bin/quota-warning.sh 70
reading the values 95, 80 and 70 from ldap.
I tried to do this in my dovecot-ldap.conf
user_attrs = mailMessageStore=mail=maildir:/maildirs/%$,maildirquota=quota_rule=*:backend, *maildirwarn1*=quota_warning = storage=*maildirwarn1%% */usr/local/bin/quota-warning.sh *maildirwarn1%%*
What are those extra "*" characters? Anyway I think something like this should work:
user_attrs = mailMessageStore=mail=maildir:/maildirs/%$,
maildirquota=quota_rule=*:backend,
maildirwarn1=quota_warning=storage=%$%% /usr/local/bin/quota-warning.sh %$
The point being that %$ is expanded to maildirwarn1's value.