MemoServ: add SET NOTIFY and SET LIMIT
All checks were successful
CI / check (push) Successful in 3m35s

SET NOTIFY {ON|OFF} controls whether you're told about new memos on login;
SET LIMIT <n>|NONE sets your mailbox cap (honoured on SEND, NONE = the
network default). New memo_notify/memo_limit account fields + one
MemoPrefsSet event.
This commit is contained in:
Jean Chevronnet 2026-07-16 00:29:33 +00:00
parent 125b8c7701
commit 2c282d036f
No known key found for this signature in database
14 changed files with 152 additions and 8 deletions

View file

@ -468,6 +468,18 @@ impl Store for Db {
fn memo_is_ignored(&self, account: &str, sender: &str) -> bool {
Db::memo_is_ignored(self, account, sender)
}
fn set_memo_notify(&mut self, account: &str, on: bool) -> bool {
Db::set_memo_notify(self, account, on)
}
fn set_memo_limit(&mut self, account: &str, limit: Option<u32>) -> bool {
Db::set_memo_limit(self, account, limit)
}
fn memo_notify_on(&self, account: &str) -> bool {
Db::memo_notify_on(self, account)
}
fn memo_limit_of(&self, account: &str) -> Option<u32> {
Db::memo_limit_of(self, account)
}
fn memo_check(&self, account: &str, sender: &str) -> Option<(bool, u64)> {
Db::memo_check(self, account, sender)
}