From: Timo Sirainen Date: Sun, 5 Oct 2008 20:27:33 +0000 (+0300) Subject: Maildir++ quota: If there are no limits, write "0S" as the file header. X-Git-Tag: 1.2.alpha3~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b76bc28de1c65b7ed6b19c7873b294d3742f5d57;p=thirdparty%2Fdovecot%2Fcore.git Maildir++ quota: If there are no limits, write "0S" as the file header. --HG-- branch : HEAD --- diff --git a/src/plugins/quota/quota-maildir.c b/src/plugins/quota/quota-maildir.c index 5fffb0c60e..75ebd7b4f5 100644 --- a/src/plugins/quota/quota-maildir.c +++ b/src/plugins/quota/quota-maildir.c @@ -279,7 +279,8 @@ static int maildirsize_write(struct maildir_quota_root *root, const char *path) } 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); }