https://gitlab.synchro.net/main/sbbs/-/commit/ec5d3771f97ed0b91584eb4f
Modified Files:
exec/tests/webmail/api.js api_drafts.js send.inc send.js webmail/lib/api.js webmail/lib/locale/en_us.ini webmail/lib/send.js webmail/root/css/style.css webmail/root/js/folders.js
Log Message:
WebMail: Max Messages Waiting on send and beside the Inbox
Sending: a message with a local recipient whose mailbox takes no more
mail (User.mailbox_full(): more than Max Messages Waiting messages
waiting, no W exemption) is refused whole before anything is stored,
with a text of its own that names the recipient, the way one recipient
the sender may not write to already refuses a send. Bulk mail at the
terminal skips a full recipient and mails the rest; the difference is
intended.
Folder list: folder.list returns inbox_limit { count, limit, level }
(null with no limit or for a user with the W exemption). The count is User.stats.mail_waiting, the number the mail server compares with the
limit: every undeleted message to the user in the mail base, Spam
included, which can be more than the Inbox folder shows. The client
shows nothing below 80% of the limit; from there a line under the
Inbox ("Inbox: 85 of 100 messages"); over the limit the same line in
the warning color with what to do (delete or file some messages, Spam
counts too).
Tested by script (exec/tests/webmail, with stand-ins for the user and
the system): a full local recipient refuses the send with nothing
saved and names the recipient; only local recipients are asked about;
the text reaches the API result; inbox_limit under, near, at and over
the limit, with no limit, with the W exemption and with the system's
own limit. The line in the folder pane was not seen in a browser.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>