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:
Mechiel Lukkien
2024-05-09 22:43:14 +02:00
parent ebb8ad06b5
commit 3f000fd4e0
7 changed files with 207 additions and 4 deletions

View File

@ -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"