[Dovecot] Invalid quota rule using "backend"
Laurento Frittella
laurento.frittella at crabruzzo.it
Tue Mar 18 18:07:31 EET 2008
Il giorno mar, 18/03/2008 alle 08.49 -0700, richs at whidbey.net ha
scritto:
> The default is Kilobytes, so you'll still need to use the S if you're
> storing the value in bytes,
I know, but the same value is used by other apps so it isn't so
simple :)
Reading the code I found that the "backend=" seems unsupported but it's
strange because the wiki page is about the "new" quota (rewritten)
version.
quota.c @ function quota_rule_parse_limits()
[...]
if (strncmp(*args, "storage=", 8) == 0) {
multiply = 1024;
limit = &rule->bytes_limit;
*limit = strtoll(*args + 8, &p, 10);
} else if (strncmp(*args, "bytes=", 6) == 0) {
limit = &rule->bytes_limit;
*limit = strtoll(*args + 6, &p, 10);
} else if (strncmp(*args, "messages=", 9) == 0) {
limit = &rule->count_limit;
*limit = strtoll(*args + 9, &p, 10);
} else {
*error_r = p_strdup_printf(root->pool,
"Unknown rule limit name: %s", *args);
return -1;
}
[...]
Any dovecot dev can confirm this inconsistency and eventually write a
patch/fix for it? I think this feature can be useful in a migration
context... like mine :)
Cheers,
Laurento
More information about the dovecot
mailing list