17 Jul
2009
17 Jul
'09
7:43 p.m.
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, ..
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).