freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.75k stars 468 forks source link

How to fetch all messages, not just unseen/unread? #4064

Closed aaversa closed 2 weeks ago

aaversa commented 4 weeks ago

I'm aware that you can manually select 'all' emails when manually fetching, however we're trying to diagnose an issue where some emails are randomly not fetched. My best guess is that these emails (in Google workspace) are being marked READ, and therefore not fetched by Freescout.

What I'd like to do is modify Freescout's cron fetch to get all emails, not just unread.

Is there an easy config option for this that I might be overlooking? Thanks in advance

EDIT: Related to this, if there is a fetch failure (for example, we use Google workspace, and occasionally we see something in the logs that the destination IMAP server timed out) will the failed fetch be retried automatically or is the failure skipped?

mattly6 commented 3 weeks ago

Automatic fetching of read e-mails was introduced in release 1.8.131. Failed jobs are automatically retried after some time.

aaversa commented 3 weeks ago

I am on 1.8.138 and that definitely did not happen. I am looking at a simple plaintext email sitting on the server that Freescout did not fetch.

freescout-helpdesk commented 3 weeks ago

To fetch read email you need to set APP_FETCH_UNSEEN=1 in the .env file and clear cache.