Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4223:606144f4e407 HEAD
Accidentally reverted 0-is-unlimited-quota change in last commit.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Mon, 24 Apr 2006 12:49:52 +0300 |
parents | b900a7257555 |
children | 8736c4deb253 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-maildir.c Mon Apr 24 12:34:28 2006 +0300 +++ b/src/plugins/quota/quota-maildir.c Mon Apr 24 12:49:52 2006 +0300 @@ -319,7 +319,7 @@ if (*lines == NULL) return -1; - /* first line contains the limits */ + /* first line contains the limits. 0 value mean unlimited. */ message_bytes_limit = (uint64_t)-1; message_count_limit = (uint64_t)-1; for (limit = t_strsplit(lines[0], ","); *limit != NULL; limit++) { @@ -327,10 +327,12 @@ if (pos[0] != '\0' && pos[1] == '\0') { switch (pos[0]) { case 'C': - message_count_limit = bytes; + if (bytes != 0) + message_count_limit = bytes; break; case 'S': - message_bytes_limit = bytes; + if (bytes != 0) + message_bytes_limit = bytes; break; } }