5 Dec
2024
5 Dec
'24
6:31 p.m.
We are working on importing emails from Gmail to Dovecot. During the process, all emails are written to a new directory within the mail folder. For fetching the emails, we are using the IMAP protocol with the imap_tools Python library.
After importing, we run the IMAP fetch at 5-second intervals. However, the newly imported emails do not appear immediately. They only become available after 30 to 40 seconds.
How can we resolve this issue? What steps can we take to debug and identify the source of the delay?