RuleActionType

public enum RuleActionType extends Enum<RuleActionType>

The action type for a Nylas rule. Note: BLOCK is terminal and cannot be combined with other actions.

Entries

Link copied to clipboard

Rejects the message at the SMTP level (inbound) or the send request with HTTP 403 (outbound). Terminal — cannot be combined with other actions.

Link copied to clipboard

Delivers the message to the spam/junk folder.

Link copied to clipboard

Moves the message to a folder. Requires RuleAction.value to be set to the folder ID.

Link copied to clipboard

Marks the message as read.

Link copied to clipboard

Marks the message as starred/flagged.

Link copied to clipboard

Moves the message to the archive folder.

Link copied to clipboard

Moves the message to the trash folder.

Properties

Link copied to clipboard
private final String name
Link copied to clipboard
private final Integer ordinal

Functions

Link copied to clipboard
public final String getName()
Link copied to clipboard
public final Integer getOrdinal()
Link copied to clipboard
public final RuleActionType valueOf(String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public final Array<RuleActionType> values()

Returns an array containing the constants of this enum type, in the order they're declared.