[dovecot/core] bffaca: imap-quota: Return NO reply if GETQUOTA fails only...

GitHub noreply at github.com
Wed Oct 4 13:00:11 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: bffaca7da2825c2a77aa46022358e2f8400a0f94
      https://github.com/dovecot/core/commit/bffaca7da2825c2a77aa46022358e2f8400a0f94
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-04 (Wed, 04 Oct 2017)

  Changed paths:
    M src/plugins/imap-quota/imap-quota-plugin.c

  Log Message:
  -----------
  imap-quota: Return NO reply if GETQUOTA fails only partially

If the first resource lookup succeeded and the second one failed, the
GETQUOTA command replied with OK instead of NO.


  Commit: 2e07e3182f355cf04a1461dd7f893d0ebc818764
      https://github.com/dovecot/core/commit/2e07e3182f355cf04a1461dd7f893d0ebc818764
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-10-04 (Wed, 04 Oct 2017)

  Changed paths:
    M src/plugins/imap-quota/imap-quota-plugin.c
    M src/plugins/quota-clone/quota-clone-plugin.c
    M src/plugins/quota/doveadm-quota.c
    M src/plugins/quota/quota-private.h
    M src/plugins/quota/quota.c
    M src/plugins/quota/quota.h

  Log Message:
  -----------
  quota: quota_get_resource() - return enum to make the result more exact

This is mainly to differentiate between "resource name unknown" and
"unlimited quota".

This also fixes quota_clone plugin to update quota even when quota is
unlimited. It was supposed to have been skipped only when the resource
names weren't known.

The private quota.get_resource() API is unchanged. The backends were
already returning 0 only when the resource name was unknown.


Compare: https://github.com/dovecot/core/compare/1d12457b69c8...2e07e3182f35


More information about the dovecot-cvs mailing list