Skip to Content

The RuleActionFileInto type of the TypeScript SDK, part of RuleAction.

type RuleActionFileInto = {
  keepInInbox?: boolean
  label: string
  type: 'fileInto'
}

Fields

FieldTypeDescription
keepInInboxbooleanOptional. Also leave the message in the Inbox. A bare fileinto CANCELS Sieve's implicit keep, so the default — false — is what every rule written before this field already did: file into the label and nowhere else. True compiles to fileinto :copy, which preserves the keep. @default false
labelstring
type'fileInto'

Used in

RuleAction.

On this page