On 05/12/2024 18:31 EET tamilarasan_ext--- via dovecot <dovecot@dovecot.org> wrote:
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?
Bit hard to say without any logs or configurations...
Can you provide doveconf -n and mail_debug=yes logs?
Also dovecot could import the mails directly from gmail with doveadm import or doveadm sync, with imapc driver.
Aki