20 Jul
2010
20 Jul
'10
11:31 a.m.
Tirsdag 20. juli 2010 09.31.51 skrev alex :
Hi
In http://wiki.dovecot.org/Variables I found: %s service imap, pop3, smtp, deliver and that can be use in userdb and SQL query string.
How exactly can I use %s in the query string if I want for ex to disable a service (just one service - ex pop3) for a specific user.
Alex
While I've not tried it, I guess you could do something like this in the SQL query;
".. AND service=('%s' OR 'all')"
You could set the default value of service column to 'all', but set it to 'imap' for users that can only use that service.