mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04:38 +03:00
make most fields of junk filter configurable by account itself
finally remove the message saying that not all config options can be configured through the web interface.
This commit is contained in:
@ -517,6 +517,16 @@ export class Client {
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as void
|
||||
}
|
||||
|
||||
// JunkFilterSave saves junk filter settings. If junkFilter is nil, the junk filter
|
||||
// is disabled. Otherwise all fields except Threegrams are stored.
|
||||
async JunkFilterSave(junkFilter: JunkFilter | null): Promise<void> {
|
||||
const fn: string = "JunkFilterSave"
|
||||
const paramTypes: string[][] = [["nullable","JunkFilter"]]
|
||||
const returnTypes: string[][] = []
|
||||
const params: any[] = [junkFilter]
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as void
|
||||
}
|
||||
|
||||
// RejectsSave saves the RejectsMailbox and KeepRejects settings.
|
||||
async RejectsSave(mailbox: string, keep: boolean): Promise<void> {
|
||||
const fn: string = "RejectsSave"
|
||||
|
Reference in New Issue
Block a user