Doug Council
2007-Jul-17 20:53 UTC
[Dovecot] Quota warning patch and config parsing in 1.0.2
Dovecot 1.0.2 patches and compiles fine with the quota warning patch
(http://www.dovecot.org/patches/quota-warning.patch). But, when parsing
the configuration file , deliver now seems to strip all of the spaces in
the QUOTA_WARNING environment variable, generating an error.
This is the plugin{} section from my dovecot.conf:
plugin {
quota = maildir:storage=20480
quota_warning = storage=10% /usr/local/bin/quota-warning
}
And this is the error Dovecot generates for anyone with a quota:
quota warning: No command specified:
storage=10/usr/local/bin/quota-warning
Doing a diff on src/deliver/deliver.c between 1.0.1 and 1.0.2 show some
changes to how the config file is parsed, but nothing I can find that
would cause the spaces to get stripped out of the configuration value.
Has anyone successfully used the quota warning patch with 1.0.2?
Thanks,
-Doug
Onno Molenkamp
2007-Jul-17 20:59 UTC
[Dovecot] Quota warning patch and config parsing in 1.0.2
Op dinsdag 17 juli 2007 schreef Doug Council:> plugin { > quota = maildir:storage=20480 > quota_warning = storage=10% /usr/local/bin/quota-warning > } > > And this is the error Dovecot generates for anyone with a quota: > > quota warning: No command specified: > storage=10/usr/local/bin/quota-warningYou probably have to escape that % sign with another %. Onno -------------- 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/20070717/c4b198f5/attachment-0002.bin>