[dovecot-cvs] dovecot/src/plugins/quota quota-maildir.c,1.5,1.6
tss-movial at dovecot.org
tss-movial at dovecot.org
Fri Apr 21 17:09:45 EEST 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv2200
Modified Files:
quota-maildir.c
Log Message:
0 values in maildirsize means unlimited.
Index: quota-maildir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-maildir.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- quota-maildir.c 6 Apr 2006 19:46:11 -0000 1.5
+++ quota-maildir.c 21 Apr 2006 14:09:43 -0000 1.6
@@ -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;
}
}
More information about the dovecot-cvs
mailing list