i have the same problem described by this bug report:
Bug 20789 - tweak imapsync to avoid lengthy delays on sending to destination server

the Tweaked imapsync script ( Access Denied ) is not downloadable.

someone can help me ?