> ## 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_filter_mail table

> This table connects mail filters (ms_filter) to mailboxes (mail_in_filter).

## ms\_filter\_mail Table (311)

This table connects mail filters (ms\_filter) to mailboxes (mail\_in\_filter).

## Fields

| Name                 | Description                             | Type                                        | Nullable |
| -------------------- | --------------------------------------- | ------------------------------------------- | :------: |
| id                   | The primary key (auto-incremented)      | PK                                          |    No    |
| mail\_sorter\_id     | The reference to the mail filter entry. | FK [ms\_filter](./ms-filter.mdx)            |    No    |
| mail\_in\_filter\_id | The reference to the mailbox.           | FK [mail\_in\_filter](./mail-in-filter.mdx) |    No    |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/ms_filter_mail.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=acbb41eb7b369783974d2e6ebf378d9b" alt="ms_filter_mail table relationship diagram" width="680" height="59" data-path="media/loc/en/database/tables/ms_filter_mail.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)
- [mail_in_filter table](/en/database/tables/mail-in-filter.md)
- [ms_trashbin table](/en/database/tables/ms-trashbin.md)
- [ms_substitute table](/en/database/tables/ms-substitute.md)
- [ticket_priority table](/en/database/tables/ticket-priority.md)
- [reply_template table](/en/database/tables/reply-template.md)
