> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ms_trashbin table

> This table contains entries for emails which have been trashed by a filter, waiting for confirmation of deletion or import.

## ms\_trashbin Table (312)

This table contains entries for emails which have been trashed by a filter, waiting for confirmation of deletion or import.

## Fields

| Name                 | Description                                                 | Type                                        | Nullable |
| -------------------- | ----------------------------------------------------------- | ------------------------------------------- | :------: |
| id                   | The primary key (auto-incremented)                          | PK                                          |    No    |
| mail\_sorter\_id     | The id of the filter which sent this email to the trashbin. | FK [ms\_filter](./ms-filter.mdx)            |    No    |
| mail\_in\_filter\_id | The id of the mailbox from which this email came.           | FK [mail\_in\_filter](./mail-in-filter.mdx) |    No    |
| when\_trashed        | When the email was trashed by the filter.                   | DateTime                                    |    Yes   |
| subject              | The subject field of the trashed email                      | String(255)                                 |    Yes   |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/ms_trashbin.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=d5237f8700c9860425accb5471c7c444" alt="ms_trashbin table relationship diagram" width="666" height="59" data-path="media/loc/en/database/tables/ms_trashbin.png" />

## Indexes

| Fields               | Types | Description |
| -------------------- | ----- | ----------- |
| mail\_sorter\_id     | FK    | Index       |
| mail\_in\_filter\_id | FK    | Index       |

## Relationships

| Table                                | Description                                                                                                       |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| [mail\_in\_filter](./mail-in-filter) | This table contains entries for the mailboxes the eJournal system is fetching mail from (POP3 or IMAP).           |
| [ms\_filter](./ms-filter)            | This table contains email filters. These are the filters allowing you to do advanced parsing of incomming emails. |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [ms_filter table](/en/database/tables/ms-filter.md)
- [ms_substitute table](/en/database/tables/ms-substitute.md)
- [ms_filter_mail table](/en/database/tables/ms-filter-mail.md)
- [mail_in_filter table](/en/database/tables/mail-in-filter.md)
- [config table](/en/database/tables/config.md)
- [Tags table](/en/database/tables/tags.md)
