On Tue, 2007-01-23 at 14:39 +0200, Ioannis Zachariadis wrote:
Hi,
I've noticed that in the maildir backend for the quota plugin the quota limit is being read in kilobytes. In the quota-maildir.c at maildir_quota_init() , line 550 (rc18)
if (strncmp(*args, "storage=", 8) == 0) { size = strtoull(*args + 8, NULL, 10) * 1024; if (size != 0) root->message_bytes_limit = size; root->master_message_limits = TRUE; }
The value that's being read from storage is supposed to be in kB, at least that's what I understand from the wiki, and then the value of size is stored in bytes.
Yes, storage=n is in kilobytes (because I thought it's easier). In maildirsize file it's in bytes (because it's required by Maildir++ spec). There shouldn't be any problems with that.