ListResource

Provides operations for managing allow/block list entries for filtering by sender, recipient, domain, or subject.

Functions

Link copied to clipboard
suspend fun create(direction: ListDirection, type: ListType, block: CreateListEntryBuilder.() -> Unit): ListEntry

Creates a new allow/block list entry.

Link copied to clipboard
suspend fun delete(direction: ListDirection, type: ListType, entry: String)

Deletes a specific list entry.

Link copied to clipboard
suspend fun get(direction: ListDirection, type: ListType, entry: String): ListEntry

Retrieves a specific list entry.

Link copied to clipboard
suspend fun list(direction: ListDirection, type: ListType, block: ListEntriesBuilder.() -> Unit = {}): ListEntryList

Lists allow/block entries for a given direction and type.