Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4215:e7ff0eced559 HEAD
0 values in maildirsize means unlimited.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Fri, 21 Apr 2006 17:09:43 +0300 |
parents | 46f3a7a3eaef |
children | 9f8493a8cd65 |
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 Fri Apr 21 16:33:00 2006 +0300 +++ b/src/plugins/quota/quota-maildir.c Fri Apr 21 17:09:43 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; } }