Sergio Lopez
2007-Aug-23 12:28 UTC
[Dovecot] [PATCH] Deliver doesn't enforce userdb quotas
Hello all, While configuring the latest stable version of Dovecot (1.0.3), I've noticed that "deliver" always uses the quota arguments found in the configuration file, completely ignoring what userdb sends to it through the authentication service. This doesn't happen in the previous version I was used (1.0.rc15, comes with Debian "etch"). After digging a little into the code, I've found that "expand_envs" is being called after "auth_client_put_user_env", thus clobbering the "QUOTA" environment variable. The attached patch changes "expand_envs" to avoid setting "QUOTA" if it has been exported before. Thanks! -- Sergio L?pez - <sergio.lopez at nologin.es> Nologin Consulting S.L. - http://nologin.es -------------- next part -------------- A non-text attachment was scrubbed... Name: dovecot-1.0.3-quotadb.patch Type: text/x-patch Size: 862 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070823/0edf453f/attachment-0002.bin>
Timo Sirainen
2007-Aug-24 18:45 UTC
[Dovecot] [PATCH] Deliver doesn't enforce userdb quotas
On Thu, 2007-08-23 at 14:28 +0200, Sergio Lopez wrote:> While configuring the latest stable version of Dovecot (1.0.3), I've > noticed that "deliver" always uses the quota arguments found in the > configuration file, completely ignoring what userdb sends to it through > the authentication service. This doesn't happen in the previous version > I was used (1.0.rc15, comes with Debian "etch").Unless you really need default quota, there's no need to have quota defined in plugin section. Anyway, I fixed this now properly for everything: http://hg.dovecot.org/dovecot-1.0/rev/bc2b06d0fba6 I guess it's time for v1.0.4 soon. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070824/0bd94095/attachment-0002.bin>