The real problem here is that imapsync is not well written at all. I've had processes eating easily over 1GB of ram. Mailboxes over 3k items just tend to go bad. I've had it get stuck in a select loop chewing through all the processor.
The biggest area that it leaks is with the header parsing and comparison code. If you are just doing a dump and aren't worried about syncing two mailboxes passing --useheader Message-Id can help a lot. Don't forget --syncinternaldates either.
If I ever planned on using this tool again I might have a go at fixing it, but for now it will live in the realm of unnecessary pain and wasted hours.
Jason |