# RuleActionFileInto

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

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

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `keepInInbox` | `boolean` | Optional. 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 |
| `label` | `string` |  |
| `type` | `'fileInto'` |  |

## Used in

[`RuleAction`](/docs/sdks/typescript/types/rule-action).
