Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8250:750ca24835c4 HEAD
Maildir++ quota: If there are no limits, write "0S" as the file header.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Oct 2008 23:27:33 +0300 |
parents | 8a0e9dfb0729 |
children | 26e7d4905d81 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ } 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); }