Plesk – email import – large folders
When importing mailboxes that contain folders with many emails, the import tool may fail to synchronise. Following the instructions on the Plesk support site here, we can change the file /opt/plesk/python/2.7/lib64/python2.7/imaplib.py. The change goes in the line containing:
_MAXLINE = 1000000and the value is changed by adding 2 zeros, so it becomes:
_MAXLINE = 100000000After saving the changes, just go to the email import settings and click “resync” to continue the import process.