[dovecot-cvs] dovecot/src/plugins/quota quota-maildir.c,1.24,1.25
tss at dovecot.org
tss at dovecot.org
Mon Mar 12 23:05:53 EET 2007
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv2502
Modified Files:
quota-maildir.c
Log Message:
If maildirsize file contains only the header, recalculate the quota.
Index: quota-maildir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-maildir.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- quota-maildir.c 6 Mar 2007 16:35:46 -0000 1.24
+++ quota-maildir.c 12 Mar 2007 21:05:50 -0000 1.25
@@ -383,6 +383,11 @@
return 0;
}
+ if (*lines == NULL) {
+ /* no quota lines. rebuild it. */
+ return 0;
+ }
+
/* rest of the lines contains <bytes> <count> diffs */
total_bytes = 0; total_count = 0;
for (lines++; *lines != NULL; lines++, line_count++) {
More information about the dovecot-cvs
mailing list