Hello Timo, thank you very much for your answer.
On Freitag, 17. Juli 2009, Timo Sirainen wrote: > On Fri, 2009-07-17 at 10:51 +0200, Philipp Marek wrote: > > What I'd like to achieve is that postfix uses the trigger value from the > > Database as well, but that deliver allows a small bit more - say 5, 10, > > or 20MB. > > Actually there shouldn't be a need to patch Dovecot to get this. You > could just do something like: > > user_query = select .., \ > '*:' || (case '%s' when 'deliver' then (quota+20*1024) else quota)) as > quota_rule, .. That would be perfect ... I'll take a look. Are placeholders like "%s", "%n" etc. listed anywhere? Google doesn't help, a grep for "%s" in the sources is a bit misleading, and not even a grep "case.*'.'.*:" -r . did help me. > > I've now looked into the sources, and tried to sketch the basic change > > that I imagine; please see the attached patch. > > I'm not exactly sure what you intended the patch to do. dict-sql is used > only for storing the actual current quota usage (not limits) to database > when using dict quota (and not Maildir++ quota). It's entirely possible that I just looked into the wrong places. Regards, Phil