[LBBS-152] mail: Cached quota usage deviates from actual quota usage with time
Over time, the cached quota calculations get out of sync with reality, which could cause issues in the long run, so it seems possible that mailbox_quota_adjust_usage is not being called the way it should in all cases or the calculations are off.
/mailbox InterLinked
[2026-03-25 22:18:48.038] DEBUG[283694]: mod_mail.c:683 mailbox_get: Found mailbox mapping via username directly
User ID : 1
Name :
Maildir : /home/bbs/maildir/1
Total Quota : 10485760 KB
Quota Used : 9176337 KB
Quota Remaining : 1309422 KB
# Mailbox Watchers : 0
Activity Pending : No
/reload mod_mail
...
/mailbox InterLinked
[2026-03-25 22:18:54.470] DEBUG[283694]: mod_mail.c:683 mailbox_get: Found mailbox mapping via username directly
User ID : 1
Name :
Maildir : /home/bbs/maildir/1
[2026-03-25 22:18:54.471] DEBUG[283694]: mod_mail.c:836 mailbox_quota: Quota defaulting to system default (10737418240)
Total Quota : 10485760 KB
[2026-03-25 22:19:03.192] DEBUG[283694]: utils.c:761 bbs_dir_size: Directory /home/bbs/maildir/1 size is 8940851370 bytes
Quota Used : 8731300 KB
Quota Remaining : 1754459 KB
# Mailbox Watchers : 0
Activity Pending : NoComments
You must be logged in to leave a comment.