dovecot-1.2: Maildir++ quota: If there are no limits, write "0S"...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Sun Oct  5 23:27:37 EEST 2008
    
    
  
details:   http://hg.dovecot.org/dovecot-1.2/rev/750ca24835c4
changeset: 8250:750ca24835c4
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 23:27:33 2008 +0300
description:
Maildir++ quota: If there are no limits, write "0S" as the file header.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/plugins/quota/quota-maildir.c |    3 ++-
diffs (13 lines):
diff -r 8a0e9dfb0729 -r 750ca24835c4 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c	Sun Oct 05 20:06:57 2008 +0300
+++ b/src/plugins/quota/quota-maildir.c	Sun Oct 05 23:27:33 2008 +0300
@@ -279,7 +279,8 @@ static int maildirsize_write(struct mail
 	}
 
 	str = t_str_new(128);
-	if (_root->bytes_limit != 0) {
+	/* if we have no limits, write 0S instead of an empty line */
+	if (_root->bytes_limit != 0 || _root->count_limit == 0) {
 		str_printfa(str, "%lluS",
 			    (unsigned long long)_root->bytes_limit);
 	}
    
    
More information about the dovecot-cvs
mailing list