https://gitlab.synchro.net/main/sbbs/-/commit/c7ca0b49db60aa086c15eb8b
Modified Files:
docs/v322_new.md src/sbbs3/js_user.cpp
Log Message:
JS: new User.mailbox_bytes() method
Returns the size, in bytes, of the user's mail as counted against the
mailbox quota (system.mailbox_quota): the Inbox, spam included, plus the folders, Sent copies and Trash kept by the mailbox library. It is the
total User.mailbox_full() compares with the quota.
This is the remaining half of #22, which asked for user.stats
mail_waiting (added in v3.12) and mail_bytes_waiting. It is a method,
not a user.stats property, because it is not cheap: each call scans the
mail base index and reads a header per Inbox message (about 2 ms for a
user with no mail, 10 ms for 450 messages, measured over SMB), so a loop
over every user takes seconds.
Fixes #22
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)