[mail] wrong rendering of mailQuota
Wrong rendering of mailQuota
Actual behavior
We are using Bluemind as mail server, and Bluemind expect mail quotas in LDAP to be expressed in bytes. But it seems that FD only supports MiB as units for this attribute.
Expected behavior
To be able to display/save user quotas properly in our environment, I've had to change MailQuotaAttribute units to start at bytes:
from
$units = [
1 => _('MiB'),
1024 ** 1 => _('GiB'),
1024 ** 2 => _('TiB'),
];
to
$units = [
1 => _('Bytes'),
1024 ** 1 => _('KiB'),
1024 ** 2 => _('MiB'),
1024 ** 3 => _('GiB'),
1024 ** 4 => _('TiB'),
];
It would be nice if quota units could be set in configuration.