PolicySpamDetection

public final class PolicySpamDetection

Class representation of a Nylas policy spam detection configuration.

Constructors

Link copied to clipboard
public PolicySpamDetection PolicySpamDetection(@Json(name = "use_list_dnsbl") Boolean useListDnsbl, @Json(name = "use_header_anomaly_detection") Boolean useHeaderAnomalyDetection, @Json(name = "spam_sensitivity") Double spamSensitivity)

Properties

Link copied to clipboard
private final Double spamSensitivity

Sensitivity threshold for spam scoring (higher = more aggressive).

Link copied to clipboard

If true, enables header anomaly detection.

Link copied to clipboard
private final Boolean useListDnsbl

If true, enables DNS-based blocklist (DNSBL) checks.

Functions

Link copied to clipboard
public final Double getSpamSensitivity()

Sensitivity threshold for spam scoring (higher = more aggressive).

Link copied to clipboard

If true, enables header anomaly detection.

Link copied to clipboard
public final Boolean getUseListDnsbl()

If true, enables DNS-based blocklist (DNSBL) checks.