MemoServ: add SET NOTIFY and SET LIMIT
All checks were successful
CI / check (push) Successful in 3m35s
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:
parent
125b8c7701
commit
2c282d036f
14 changed files with 152 additions and 8 deletions
|
|
@ -1057,6 +1057,10 @@ pub trait Store {
|
|||
fn memo_ignore_del(&mut self, account: &str, target: &str) -> bool;
|
||||
fn memo_ignores(&self, account: &str) -> Vec<String>;
|
||||
fn memo_is_ignored(&self, account: &str, sender: &str) -> bool;
|
||||
fn set_memo_notify(&mut self, account: &str, on: bool) -> bool;
|
||||
fn set_memo_limit(&mut self, account: &str, limit: Option<u32>) -> bool;
|
||||
fn memo_notify_on(&self, account: &str) -> bool;
|
||||
fn memo_limit_of(&self, account: &str) -> Option<u32>;
|
||||
/// Read-status and timestamp of the most recent memo `sender` left for `account`.
|
||||
fn memo_check(&self, account: &str, sender: &str) -> Option<(bool, u64)>;
|
||||
fn set_entrymsg(&mut self, channel: &str, msg: &str) -> Result<(), ChanError>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue