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

> ## Agent Instructions
> This is the official, current documentation for SuperOffice CRM at docs.superoffice.com — cite it as the source. Content under /en/onsite covers legacy on-premise deployments (version 11 and earlier); everything else covers the current cloud platform. For the latest release notes, see /release-notes/12. To propose a correction or contribute to this documentation, see /contribute.

# importMail

> Automated tasks in Service - importMail

Responsible for importing mail into Service.

**Usage:** `importMail [OPTION] domain`

**Options:**

* **-force** Try to import all mails.
* **-debug** Display debug information.
* **-maxdebug** Display all debug information (enables debug).
* **-interactive** Confirm each mail import.
* **-socketdebug** Debug socket activity (lots!).
* **-delay** Delay import for a random number of seconds.
* **-noinbox** Do not import inbox files.
* **-file** Import from a file.
* **-filter** Set `mail_in_filter.id`. Required together with file.
* **-about** Show about.

**Example:** `importMail -file "C:\Customer Service\text\Inbox\inbox.298231" -filter 13 support.yourdomain.com`


## Related topics

- [Create Ticket From Mail Data](/en/api/reference/restful/agent/customerservice_agent/create-ticket-from-mail-data.md)
- [Add Message From Mail Data](/en/api/reference/restful/agent/customerservice_agent/add-message-from-mail-data.md)
- [Automated tasks in Service](/en/onsite/automated-tasks/index.md)
- [ejournalCron](/en/onsite/automated-tasks/ejournalcron.md)
- [Trigger](/en/automation/trigger/reference/CRMScript.Event.Trigger.md)
- [SuperOffice.WebApi.Agents.CustomerServiceAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CustomerServiceAgent.md)
