mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
quota: fix handling negative max size when configured for an account, and clarify value is in bytes in config file
for #115 by pmarini-nc
This commit is contained in:
@ -2015,7 +2015,7 @@ func (a *Account) AddMessageSize(log mlog.Log, tx *bstore.Tx, size int64) error
|
||||
func (a *Account) QuotaMessageSize() int64 {
|
||||
conf, _ := a.Conf()
|
||||
size := conf.QuotaMessageSize
|
||||
if size <= 0 {
|
||||
if size == 0 {
|
||||
size = mox.Conf.Static.QuotaMessageSize
|
||||
}
|
||||
if size < 0 {
|
||||
|
Reference in New Issue
Block a user