Random email scan timeouts
I setup IMAP authentication with gmail and it works... most of the time. There are periods of time I get random timeouts. Today I received an email and triggered scan manually from the UI and got his error:
Mon, August 1st, 2022, 15:14: === Start importing mails for user USERNAME
Mon, August 1st, 2022, 15:14: Settings: {"account":"Personal/USER","imapConnection":"[email protected]","scanRecursively":true,"folders":["Inbox"],"receivedSince":null,"targetFolder":null,"deleteMail":false,"direction":null,"itemFolder":null,"fileFilter":null,"tags":null,"subjectFilter":null,"language":null,"postHandleAll":false,"attachmentsOnly":false}
Mon, August 1st, 2022, 15:14: Reading mails for user USERNAME from [email protected]/Inbox
Mon, August 1st, 2022, 15:14: Job ECdzwdudV.../Personal/scan-mailbox/Low execution failed. Retrying later.: * BYE Jakarta Mail Exception: java.net.SocketTimeoutException: Read timed out
Though the scheduled scan: Mon, August 1st, 2022, 0:01: Job execution successful
Some time passes and it starts working again. There are only 18 emails in that inbox so it should not be due to long time due to amount of emails. There are some emails that I deleted after importing, so some may need to get skipped and there is a variety of file attachments (.doc .pdf .docx)
This message usually means that the server is not responding at all or within the timeout. Since it works sometimes, maybe adjusting the timeout is an option here. I think this is not possible to configure currently :/ this should be added. Maybe it's good to have some global settings in the config file at first and possibly some "advanced" imap settings.