> ## 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.

# email_folder table

> Corresponds to an email folder on a mail server

## email\_folder Table (492)

Corresponds to an email folder on a mail server

## Fields

| Name                      | Description                                                   | Type                                     | Nullable |
| ------------------------- | ------------------------------------------------------------- | ---------------------------------------- | :------: |
| email\_folder\_id         | Primary key                                                   | PK                                       |    No    |
| account\_id               | Account id                                                    | FK [email\_account](./email-account.mdx) |    Yes   |
| parent\_folder\_id        | Parent folder                                                 | FK [email\_folder](./email-folder.mdx)   |    Yes   |
| name                      | Folder name                                                   | String(255)                              |    Yes   |
| attributes                | Folder attributes like Subscribed, HasChildren, Junk, Sent... | Int                                      |    Yes   |
| registered                | Registered when                                               | UtcDateTime                              |    No    |
| registered\_associate\_id | Registered by whom                                            | FK [associate](./associate.mdx)          |    No    |
| updated                   | Last updated when                                             | UtcDateTime                              |    No    |
| updated\_associate\_id    | Last updated by whom                                          | FK [associate](./associate.mdx)          |    No    |
| updatedCount              | Number of updates made to this record                         | UShort                                   |    No    |
| folder\_separator         | Character separating subfolders                               | String(255)                              |    Yes   |

<img src="https://mintcdn.com/superofficeas/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/email_folder.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=de78052b3d33e3f867f1b7d12aa55fcf" alt="email_folder table relationship diagram" width="707" height="675" data-path="media/loc/en/database/tables/email_folder.png" />

## Indexes

| Fields      | Types | Description |
| ----------- | ----- | ----------- |
| account\_id | FK    | Index       |

## Relationships

| Table                             | Description                                                        |
| --------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)          | Employees, resources and other users - except for External persons |
| [email\_account](./email-account) | Email account information                                          |
| [email\_folder](./email-folder)   | Corresponds to an email folder on a mail server                    |
| [email\_item](./email-item)       | Email data                                                         |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [email_account table](/en/database/tables/email-account.md)
- [SuperOffice.WebApi.Data.EMailFolder](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMailFolder.md)
- [emailfolder](/en/api/mdo-providers/reference/emailfolder.md)
- [Cache Folder List](/en/api/reference/restful/agent/email_agent/cache-folder-list.md)
- [What's new in version 10.3.9.718](/release-notes/database/changes-10.3.9.md)
- [Released database changes in version 9.8.7717.1401](/release-notes/database/changes-9.2.md)
