When I try to synchronize my IMAP4 account it silently fails. I look at the log and I see as follows (glad to provide more info upon request):

2008-08-03 21:53:45,630 INFO [main] [] log - Started SelectChannelConnector@localhost:7634
2008-08-03 21:54:27,661 INFO [btpool0-10] [name=zimbra;ip=127.0.0.1;] datasource - Testing DataSource: { id=cc7ae612-8b2f-476a-a214-af804a0b6b10, type=imap, isEnabled=true, name=me@mydomain.com, host=mydomain.com, port=993, connectionType=ssl, username=me@mydomain.com, folderId=1 }
2008-08-03 21:54:29,005 INFO [btpool0-10] [name=zimbra;ip=127.0.0.1;] datasource - Test succeeded
2008-08-03 21:54:40,755 INFO [sync-timer-me@mydomain.com] [] datasource - Importing data.
2008-08-03 21:54:41,989 DEBUG [sync-timer-me@mydomain.com] [] datasource - Found 0 folders for DataSource: { id=cc7ae612-8b2f-476a-a214-af804a0b6b10, type=imap, isEnabled=true, name=me@mydomain.com, host=mydomain.com, port=993, connectionType=ssl, username=me@mydomain.com, folderId=1 }
2008-08-03 21:54:42,286 ERROR [sync-timer-me@mydomain.com] [] datasource - Synchronization of folder 'INBOX' failed
java.io.IOException: Error in response handler
at com.zimbra.cs.mailclient.imap.ImapConnection.waitF orResponse(ImapConnection.java:517)
at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(ImapConnection.java:445)
at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:75)
at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(ImapRequest.java:79)
at com.zimbra.cs.mailclient.imap.ImapConnection.doSel ectOrExamine(ImapConnection.java:198)
at com.zimbra.cs.mailclient.imap.ImapConnection.selec t(ImapConnection.java:185)
at com.zimbra.cs.datasource.RemoteFolder.select(Remot eFolder.java:134)
at com.zimbra.cs.datasource.ImapFolderSync.createLoca lFolder(ImapFolderSync.java:416)
at com.zimbra.cs.datasource.ImapFolderSync.syncFolder (ImapFolderSync.java:113)
at com.zimbra.cs.datasource.ImapSync.syncRemoteFolder s(ImapSync.java:178)
at com.zimbra.cs.datasource.ImapSync.syncFolders(Imap Sync.java:159)
at com.zimbra.cs.datasource.ImapSync.importData(ImapS ync.java:122)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:154)
at com.zimbra.cs.mailbox.LocalMailbox.importData(Loca lMailbox.java:319)
at com.zimbra.cs.mailbox.LocalMailbox.syncAllLocalDat aSources(LocalMailbox.java:300)
at com.zimbra.cs.mailbox.LocalMailbox.sync(LocalMailb ox.java:357)
at com.zimbra.cs.mailbox.LocalMailbox.syncOnTimer(Loc alMailbox.java:282)
at com.zimbra.cs.mailbox.DesktopMailbox$1.run(Desktop Mailbox.java:117)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: com.zimbra.cs.mailclient.ParseException: Expected non-zero number but got 0
at com.zimbra.cs.mailclient.imap.ImapInputStream.read Number(ImapInputStream.java:146)
at com.zimbra.cs.mailclient.imap.ImapInputStream.read NZNumber(ImapInputStream.java:129)
at com.zimbra.cs.mailclient.imap.ResponseText.readCod e(ResponseText.java:59)
at com.zimbra.cs.mailclient.imap.ResponseText.read(Re sponseText.java:45)
at com.zimbra.cs.mailclient.imap.ImapResponse.readUnt agged(ImapResponse.java:73)
at com.zimbra.cs.mailclient.imap.ImapResponse.readRes ponse(ImapResponse.java:53)
at com.zimbra.cs.mailclient.imap.ImapResponse.read(Im apResponse.java:41)
at com.zimbra.cs.mailclient.imap.ImapConnection.readR esponse(ImapConnection.java:581)
at com.zimbra.cs.mailclient.imap.ImapConnection.nextR esponse(ImapConnection.java:575)
at com.zimbra.cs.mailclient.imap.ImapConnection.acces s$000(ImapConnection.java:42)
at com.zimbra.cs.mailclient.imap.ImapConnection$4.run (ImapConnection.java:542)
at java.lang.Thread.run(Unknown Source)
2008-08-03 21:54:42,286 ERROR [sync-timer-me@mydomain.com] [] datasource - Synchronization of folder 'Trash' failed
java.lang.IllegalStateException: Connection is closed
at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(ImapConnection.java:431)
at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:75)
at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(ImapRequest.java:79)
at com.zimbra.cs.mailclient.imap.ImapConnection.doSel ectOrExamine(ImapConnection.java:198)
at com.zimbra.cs.mailclient.imap.ImapConnection.selec t(ImapConnection.java:185)
at com.zimbra.cs.datasource.RemoteFolder.select(Remot eFolder.java:134)
at com.zimbra.cs.datasource.ImapFolderSync.createLoca lFolder(ImapFolderSync.java:416)
at com.zimbra.cs.datasource.ImapFolderSync.syncFolder (ImapFolderSync.java:113)
at com.zimbra.cs.datasource.ImapSync.syncRemoteFolder s(ImapSync.java:178)
at com.zimbra.cs.datasource.ImapSync.syncFolders(Imap Sync.java:159)
at com.zimbra.cs.datasource.ImapSync.importData(ImapS ync.java:122)
at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:154)
at com.zimbra.cs.mailbox.LocalMailbox.importData(Loca lMailbox.java:319)
at com.zimbra.cs.mailbox.LocalMailbox.syncAllLocalDat aSources(LocalMailbox.java:300)
at com.zimbra.cs.mailbox.LocalMailbox.sync(LocalMailb ox.java:357)
at com.zimbra.cs.mailbox.LocalMailbox.syncOnTimer(Loc alMailbox.java:282)
at com.zimbra.cs.mailbox.DesktopMailbox$1.run(Desktop Mailbox.java:117)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)