# Import From Mailbox

> Read mailbox messages or attachments into Datahub.

The Import from Mailbox node retrieves emails from a mailbox using IMAP, authenticated through OAuth2.

## OAuth2

| Setting | Value |
| --- | --- |
| Authorization URL | `https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code` |
| Access token URL | `https://login.microsoftonline.com/common/oauth2/v2.0/token` |
| Client id | Found in the app registration. |
| Client secret | Found in the app registration. |
| Scope | `https://outlook.office.com/IMAP.AccessAsUser.All openid offline_access` |

## Configuration

| Setting | Value | Description |
| --- | --- | --- |
| Connection | IMAP connection | Required to connect properly to the mail server. |
| Authorization | Webservice connection | Must hold the proper credentials and tokens to connect to the connection set in Connection. |
| Username | Email | The email address from which to collect emails. |
| Delivered after | DateTime / Column | Only retrieve emails delivered after the given date and time. |
| Retrieve Attachments | Boolean | Whether or not to retrieve attachments as files. |