# Email Ingest Cron

The `cli/email_ingest.php` script checks configured mailboxes for new messages and saves any attachments into the Documents module. Each attachment is tagged with the email sender and subject for easy searching.

Add a cron entry to execute the script periodically, for example every 15 minutes:

```cron
*/15 * * * * /usr/bin/php /path/to/cli/email_ingest.php >> /var/log/email_ingest.log 2>&1
```

Ensure `config/mailboxes.php` contains the IMAP connection details for each inbox you want to process.
