From b76bc28de1c65b7ed6b19c7873b294d3742f5d57 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 5 Oct 2008 23:27:33 +0300 Subject: [PATCH] Maildir++ quota: If there are no limits, write "0S" as the file header. --HG-- branch : HEAD --- src/plugins/quota/quota-maildir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.47.3