dovecot-2.0: quota: Fixed checking message count limit when savi...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 4 23:19:15 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/618f610c7c67
changeset: 12713:618f610c7c67
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 04 23:18:31 2011 +0300
description:
quota: Fixed checking message count limit when saving multiple mails in transaction.
diffstat:
src/plugins/quota/quota.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 8fa544520413 -r 618f610c7c67 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c Mon Apr 04 23:07:37 2011 +0300
+++ b/src/plugins/quota/quota.c Mon Apr 04 23:18:31 2011 +0300
@@ -1170,7 +1170,8 @@
*too_large_r = FALSE;
- if (ctx->count_left != 0 && ctx->bytes_left >= ctx->bytes_used + size)
+ if ((int64_t)ctx->count_left >= ctx->count_used + 1 &&
+ (int64_t)ctx->bytes_left >= ctx->bytes_used + (off_t)size)
return 1;
roots = array_get(&ctx->quota->roots, &count);
More information about the dovecot-cvs
mailing list