Displaying 3 results from an estimated 3 matches for "message_bytes_limit".
2007 Jan 23
1
Maildir Quota backend
...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.
thanks
--
giannis.
-------------- next part --------------
An HTML attach...
2006 Jun 11
1
Quotas and LDAP
...9;\0'; args++) {
if (strncmp(*args, "storage=", 8) == 0) {
- size = strtoull(*args + 8, NULL, 10) * 1024;
+ size = strtoull(*args + 8, NULL, 10);
if (size != 0)
root->message_bytes_limit = size;
root->master_message_limits = TRUE;
Thanks
Stephan
--
| Those that bite the hand that feeds them are |
| doomed to lick the boot that kicks them. |
2006 Apr 14
0
Quota again
...int64_t)root->mount->blk_size / 1024 / 4;
return 1;
}
--- quota-maildir.c.old 2006-04-14 22:46:17.000000000 +0200
+++ quota-maildir.c 2006-04-14 13:56:02.000000000 +0200
@@ -597,7 +597,7 @@
if (strcmp(name, QUOTA_NAME_STORAGE) == 0) {
*limit_r = root->message_bytes_limit / 1024;
- *value_r = root->total_bytes / 1024;
+ *value_r = root->total_bytes / 10;
} else if (strcmp(name, QUOTA_NAME_MESSAGES) == 0) {
*limit_r = root->message_count_limit;
*value_r = root->total_count;