Results 1 to 5 of 5

Thread: Unable to sync IMAP folder with space in name

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    4

    Default Unable to sync IMAP folder with space in name

    Hi!

    IMAP sync fails completely when trying to sync with goDaddy's IMAP servers. It seems to be the folder "Bulk Mail" that is causing the trouble.

    Here is the error message extracted from the client:

    com.zimbra.common.service.ServiceException: system failure: Folder sync failed
    ExceptionId:btpool0-179:1321450727613:a657d4a9b6c0364c
    Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
    at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:168)
    at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:135)
    at com.zimbra.cs.offline.OfflineImport.importData(Off lineImport.java:100)
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:312)
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:276)
    at com.zimbra.cs.mailbox.DataSourceMailbox.syncAllLoc alDataSources(DataSourceMailbox.java:442)
    at com.zimbra.cs.mailbox.DataSourceMailbox.sync(DataS ourceMailbox.java:480)
    at com.zimbra.cs.service.offline.OfflineSync.handle(O fflineSync.java:55)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:412)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:287)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:158)
    at com.zimbra.soap.SoapServlet.doWork(SoapServlet.jav a:294)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:215)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:725)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:208)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:814)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:218)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:422)
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230)
    at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
    at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:230)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:543)
    at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:946)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:405)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:410)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:451)
    Caused by: com.zimbra.common.service.ServiceException: system failure: Synchronization of folder '/Inbox' failed
    ExceptionId:btpool0-179:1321450727613:a657d4a9b6c0364c
    Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:248)
    at com.zimbra.cs.datasource.imap.ImapSync.syncFailed( ImapSync.java:384)
    at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:325)
    at com.zimbra.cs.datasource.imap.ImapSync.syncFolders (ImapSync.java:235)
    at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:163)
    ... 34 more
    Caused by: java.io.IOException: Connection is closed
    at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(ImapConnection.java:501)
    at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:95)
    at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(ImapRequest.java:111)
    at com.zimbra.cs.mailclient.imap.ImapConnection.doSel ectOrExamine(ImapConnection.java:208)
    at com.zimbra.cs.mailclient.imap.ImapConnection.selec t(ImapConnection.java:195)
    at com.zimbra.cs.datasource.imap.RemoteFolder.select( RemoteFolder.java:198)
    at com.zimbra.cs.datasource.imap.ImapFolderSync.syncM essages(ImapFolderSync.java:269)
    at com.zimbra.cs.datasource.imap.ImapSync.syncMessage s(ImapSync.java:322)
    ... 36 more



    In the log file I have found the following:

    2011-11-16 14:38:47,610 DEBUG [btpool0-179] [mid=17;] imap-client - setState: AUTHENTICATED -> CLOSED
    2011-11-16 14:38:47,610 INFO [btpool0-179] [mid=17;] datasource - Remote folder 'Bulk Mail': Error in STATUS command
    com.zimbra.cs.mailclient.CommandFailedException: STATUS failed: Error in response
    at com.zimbra.cs.mailclient.imap.ImapRequest.failed(I mapRequest.java:210)
    at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:103)
    at com.zimbra.cs.mailclient.imap.ImapRequest.sendChec kStatus(ImapRequest.java:111)
    at com.zimbra.cs.mailclient.imap.ImapConnection.statu s(ImapConnection.java:277)
    at com.zimbra.cs.datasource.imap.RemoteFolder.status( RemoteFolder.java:211)
    at com.zimbra.cs.datasource.imap.ImapFolderSync.creat eLocalFolder(ImapFolderSync.java:546)
    at com.zimbra.cs.datasource.imap.ImapFolderSync.syncF older(ImapFolderSync.java:127)
    at com.zimbra.cs.datasource.imap.ImapSync.syncRemoteF olders(ImapSync.java:261)
    at com.zimbra.cs.datasource.imap.ImapSync.syncFolders (ImapSync.java:228)
    at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:163)
    at com.zimbra.cs.datasource.imap.ImapSync.importData( ImapSync.java:135)
    at com.zimbra.cs.offline.OfflineImport.importData(Off lineImport.java:100)
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:312)
    at com.zimbra.cs.datasource.DataSourceManager.importD ata(DataSourceManager.java:276)
    at com.zimbra.cs.mailbox.DataSourceMailbox.syncAllLoc alDataSources(DataSourceMailbox.java:442)
    at com.zimbra.cs.mailbox.DataSourceMailbox.sync(DataS ourceMailbox.java:480)
    at com.zimbra.cs.service.offline.OfflineSync.handle(O fflineSync.java:55)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:412)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:287)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:158)
    at com.zimbra.soap.SoapServlet.doWork(SoapServlet.jav a:294)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:215)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:725)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:208)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:814)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:218)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:422)
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230)
    at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
    at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:230)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:543)
    at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:946)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:405)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:410)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:451)
    Caused by: com.zimbra.cs.mailclient.ParseException: Unexpected character 'M' (expecting '(')
    at com.zimbra.cs.mailclient.imap.ImapInputStream.skip Char(ImapInputStream.java:310)
    at com.zimbra.cs.mailclient.imap.MailboxInfo.parseSta tus(MailboxInfo.java:78)
    at com.zimbra.cs.mailclient.imap.MailboxInfo.readStat us(MailboxInfo.java:65)
    at com.zimbra.cs.mailclient.imap.ImapResponse.readUnt agged(ImapResponse.java:99)
    at com.zimbra.cs.mailclient.imap.ImapResponse.readRes ponse(ImapResponse.java:51)
    at com.zimbra.cs.mailclient.imap.ImapResponse.read(Im apResponse.java:38)
    at com.zimbra.cs.mailclient.imap.ImapConnection.readR esponse(ImapConnection.java:648)
    at com.zimbra.cs.mailclient.imap.ImapConnection.waitF orResponse(ImapConnection.java:641)
    at com.zimbra.cs.mailclient.imap.ImapConnection.sendR equest(ImapConnection.java:518)
    at com.zimbra.cs.mailclient.imap.ImapRequest.send(Ima pRequest.java:95)
    ... 42 more
    2011-11-16 14:38:47,612 DEBUG [btpool0-179] [mid=17;] datasource - Local folder '/Inbox': Syncing messages for folder


    Since it complains about "Unexpected character 'M'", my conclusion is that the "Bulk Mail" folder is the problem, due to the space in the name. This folder is a system folder at my provider which means I can not delete it there.

    I also made a manual connect to the IMAP server over telnet, and this is the transcript. Seems like the server does not quote the folder name, as ZDClient expects...

    * OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE UIDPLUS IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
    01 login <EMAIL REMOVED> *************
    01 OK LOGIN Full IMAP support is enabled
    02 status "" "*"
    02 NO Error in IMAP command received by server.
    03 list "" "*"
    * LIST (NoInferiors) "/" "INBOX"
    * LIST (NoInferiors) "/" "Bulk Mail"
    * LIST (NoInferiors) "/" "Drafts"
    * LIST (HasNoChildren) "/" "Email_Templates"
    * LIST (NoInferiors) "/" "Send_Later"
    * LIST (NoInferiors) "/" "Sent Items"
    * LIST (NoInferiors) "/" "Trash"
    03 OK Success
    04 status INBOX (messages)
    * STATUS INBOX (MESSAGES 1)
    04 OK STATUS completed.
    05 status "Bulk Mail" (messages)
    * STATUS Bulk Mail (MESSAGES 0)
    05 OK STATUS completed.

    Any help/workaround/suggestion is very welcome!

    Thank You

    Markus
    Last edited by markusoft; 11-16-2011 at 07:16 AM. Reason: Added more information

  2. #2
    Join Date
    Jan 2011
    Posts
    118
    Rep Power
    4

    Default

    Can you go to the edit account page and check the "Enable debug logging" at the bottom, this will give us extra imap trace. Please paste it here, thanks !

  3. #3
    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    4

    Default

    Quote Originally Posted by dywang View Post
    Can you go to the edit account page and check the "Enable debug logging" at the bottom, this will give us extra imap trace. Please paste it here, thanks !
    Sorry for the wait, here it comes!

    Code:
    2011-11-29 09:21:17,580 INFO  [sync-mbox-ACCOUNTNAME] [] offline - >>>>>>>> name=ACCOUNTNAME;version=7.1.2;build=10978;release=GA;os=Linux i386 2.6.32-trunk-amd64;type=imap
    2011-11-29 09:21:17,582 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Requested import.
    2011-11-29 09:21:17,582 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Importing data for data source 'EMAIL@DOMAIN-IMAP'
    2011-11-29 09:21:17,584 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - getSyncState: fid = 2, state = null
    2011-11-29 09:21:17,584 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Closing connection: {host=imap.DOMAIN,port=993,type=SSL,state=SELECTED,folder=INBOX}
    2011-11-29 09:21:17,584 DEBUG [sync-mbox-ACCOUNTNAME] [] imap-client - setState: SELECTED -> CLOSED
    2011-11-29 09:21:17,587 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Connect timeout = 60, read timeout = 60
    2011-11-29 09:21:17,887 INFO  [btpool0-815] [mid=9;] datasource - Testing: DataSource: { id=b4a5c5ec-03ef-4b58-8102-90c6ecb67091, type=pop3, isEnabled=true, name=DOMAIN, host=pop.DOMAIN, port=995, connectionType=ssl, username=EMAIL@DOMAIN, folderId=2 }
    2011-11-29 09:21:18,126 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE UIDPLUS IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
    2011-11-29 09:21:18,126 DEBUG [sync-mbox-ACCOUNTNAME] [] imap-client - setState: CLOSED -> NOT_AUTHENTICATED
    2011-11-29 09:21:18,127 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C01 LOGIN EMAIL@DOMAIN ******
    2011-11-29 09:21:18,162 DEBUG [offline-poller-EMAIL.nilsson@cronlab.com] [] request - <WaitSetRequest seq="502" block="1" defTypes="all" waitSet="WaitSet-3786de1d-c352-43c5-b0d3-2e9c8849e1c3" timeout="300" xmlns="urn:zimbraMail"><update><a id="f27addd7-37f2-4eb5-865c-018e359a21fc" token="191427"/></update></WaitSetRequest>
    2011-11-29 09:21:18,190 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C01 OK LOGIN Full IMAP support is enabled
    2011-11-29 09:21:18,190 DEBUG [sync-mbox-ACCOUNTNAME] [] imap-client - setState: NOT_AUTHENTICATED -> AUTHENTICATED
    2011-11-29 09:21:18,190 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Created new connection: {host=imap.DOMAIN,port=993,type=SSL,state=AUTHENTICATED,folder=null}
    2011-11-29 09:21:18,191 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Get all mappings for EMAIL@DOMAIN-IMAP in folder 1
    2011-11-29 09:21:18,191 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Upgrading IMAP data for EMAIL@DOMAIN-IMAP
    2011-11-29 09:21:18,191 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Deleting all mappings for dataSource EMAIL@DOMAIN-IMAP
    2011-11-29 09:21:18,192 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Deleted 0 mappings for EMAIL@DOMAIN-IMAP
    2011-11-29 09:21:18,196 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Found 0 folders for DataSource: { id=99eff55a-78b9-442d-8a21-4968a7f98d0c, type=imap, isEnabled=true, name=EMAIL@DOMAIN-IMAP, host=imap.DOMAIN, port=993, connectionType=ssl, username=EMAIL@DOMAIN, folderId=1 }
    2011-11-29 09:21:18,196 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Get all mappings for EMAIL@DOMAIN-IMAP in folder 1
    2011-11-29 09:21:18,196 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Deleting IMAP data for DataSource 99eff55a-78b9-442d-8a21-4968a7f98d0c
    2011-11-29 09:21:18,197 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C02 LIST "" ""
    2011-11-29 09:21:18,262 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\Noselect) "/" "/"
    2011-11-29 09:21:18,262 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C02 OK  Success
    2011-11-29 09:21:18,262 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C03 LIST "" "*"
    2011-11-29 09:21:18,271 INFO  [btpool0-810] [mid=9;] offline - SMTP Test Succeeded: DataSource: { id=b4a5c5ec-03ef-4b58-8102-90c6ecb67091, type=pop3, isEnabled=true, name=DOMAIN, host=pop.DOMAIN, port=995, connectionType=ssl, username=EMAIL@DOMAIN, folderId=2 }
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "INBOX"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "Bulk Mail"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "Drafts"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\HasNoChildren) "/" "Email_Templates"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "Send_Later"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "Sent Items"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * LIST (\NoInferiors) "/" "Trash"
    2011-11-29 09:21:18,330 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C03 OK  Success
    2011-11-29 09:21:18,331 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C04 STATUS INBOX (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,398 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS INBOX (MESSAGES 8 UIDNEXT 19 UIDVALIDITY 1)
    2011-11-29 09:21:18,398 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C04 OK STATUS completed.
    2011-11-29 09:21:18,398 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(2), remoteId(INBOX)
    2011-11-29 09:21:18,400 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 2, state = null
    2011-11-29 09:21:18,400 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'INBOX': syncing remote folder INBOX
    2011-11-29 09:21:18,400 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C05 STATUS Trash (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,470 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Trash (MESSAGES 6 UIDNEXT 7 UIDVALIDITY 1)
    2011-11-29 09:21:18,470 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C05 OK STATUS completed.
    2011-11-29 09:21:18,470 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(3), remoteId(Trash)
    2011-11-29 09:21:18,471 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 3, state = null
    2011-11-29 09:21:18,471 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Trash': syncing remote folder Trash
    2011-11-29 09:21:18,472 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C06 STATUS "Sent Items" (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,530 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Sent_Items (MESSAGES 1 UIDNEXT 2 UIDVALIDITY 1)
    2011-11-29 09:21:18,530 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C06 OK STATUS completed.
    2011-11-29 09:21:18,531 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Local folder '/Sent Items': creating folder
    2011-11-29 09:21:18,538 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(257), remoteId(Sent Items)
    2011-11-29 09:21:18,541 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 257, state = null
    2011-11-29 09:21:18,541 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Sent_Items': syncing remote folder Sent Items
    2011-11-29 09:21:18,541 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C07 STATUS Send_Later (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,602 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Send_Later (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)
    2011-11-29 09:21:18,602 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C07 OK STATUS completed.
    2011-11-29 09:21:18,602 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Local folder '/Send_Later': creating folder
    2011-11-29 09:21:18,607 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(258), remoteId(Send_Later)
    2011-11-29 09:21:18,608 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 258, state = null
    2011-11-29 09:21:18,608 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Send_Later': syncing remote folder Send_Later
    2011-11-29 09:21:18,608 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C08 STATUS Email_Templates (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,670 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Email_Templates (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1321448914)
    2011-11-29 09:21:18,670 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C08 OK STATUS completed.
    2011-11-29 09:21:18,670 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Local folder '/Email_Templates': creating folder
    2011-11-29 09:21:18,674 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(259), remoteId(Email_Templates)
    2011-11-29 09:21:18,675 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 259, state = null
    2011-11-29 09:21:18,675 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Email_Templates': syncing remote folder Email_Templates
    2011-11-29 09:21:18,675 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C09 STATUS Drafts (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,738 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Drafts (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)
    2011-11-29 09:21:18,738 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: C09 OK STATUS completed.
    2011-11-29 09:21:18,738 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - Adding mapping for dataSource EMAIL@DOMAIN-IMAP: itemId(6), remoteId(Drafts)
    2011-11-29 09:21:18,739 DEBUG [sync-mbox-ACCOUNTNAME] [] datasource - removeSyncState: fid = 6, state = null
    2011-11-29 09:21:18,740 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Drafts': syncing remote folder Drafts
    2011-11-29 09:21:18,740 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - C: C10 STATUS "Bulk Mail" (UIDVALIDITY UIDNEXT MESSAGES)
    2011-11-29 09:21:18,808 TRACE [sync-mbox-ACCOUNTNAME] [] imap-client - S: * STATUS Bulk Mail (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)
    2011-11-29 09:21:18,808 DEBUG [sync-mbox-ACCOUNTNAME] [] imap-client - setState: AUTHENTICATED -> CLOSED
    2011-11-29 09:21:18,808 INFO  [sync-mbox-ACCOUNTNAME] [] datasource - Remote folder 'Bulk Mail': Error in STATUS command
    com.zimbra.cs.mailclient.CommandFailedException: STATUS failed: Error in response
    	at com.zimbra.cs.mailclient.imap.ImapRequest.failed(ImapRequest.java:210)
    	at com.zimbra.cs.mailclient.imap.ImapRequest.send(ImapRequest.java:103)
    	at com.zimbra.cs.mailclient.imap.ImapRequest.sendCheckStatus(ImapRequest.java:111)
    	at com.zimbra.cs.mailclient.imap.ImapConnection.status(ImapConnection.java:277)
    	at com.zimbra.cs.datasource.imap.RemoteFolder.status(RemoteFolder.java:211)
    	at com.zimbra.cs.datasource.imap.ImapFolderSync.createLocalFolder(ImapFolderSync.java:546)
    	at com.zimbra.cs.datasource.imap.ImapFolderSync.syncFolder(ImapFolderSync.java:127)
    	at com.zimbra.cs.datasource.imap.ImapSync.syncRemoteFolders(ImapSync.java:261)
    	at com.zimbra.cs.datasource.imap.ImapSync.syncFolders(ImapSync.java:228)
    	at com.zimbra.cs.datasource.imap.ImapSync.importData(ImapSync.java:163)
    	at com.zimbra.cs.datasource.imap.ImapSync.importData(ImapSync.java:135)
    	at com.zimbra.cs.offline.OfflineImport.importData(OfflineImport.java:100)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:312)
    	at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:276)
    	at com.zimbra.cs.mailbox.DataSourceMailbox.syncAllLocalDataSources(DataSourceMailbox.java:442)
    	at com.zimbra.cs.mailbox.DataSourceMailbox.sync(DataSourceMailbox.java:480)
    	at com.zimbra.cs.mailbox.DataSourceMailbox.syncOnTimer(DataSourceMailbox.java:409)
    	at com.zimbra.cs.mailbox.SyncMailbox$1.run(SyncMailbox.java:257)
    	at java.util.TimerThread.mainLoop(Timer.java:512)
    	at java.util.TimerThread.run(Timer.java:462)
    Caused by: com.zimbra.cs.mailclient.ParseException: Unexpected character 'M' (expecting '(')
    	at com.zimbra.cs.mailclient.imap.ImapInputStream.skipChar(ImapInputStream.java:310)
    	at com.zimbra.cs.mailclient.imap.MailboxInfo.parseStatus(MailboxInfo.java:78)
    	at com.zimbra.cs.mailclient.imap.MailboxInfo.readStatus(MailboxInfo.java:65)
    	at com.zimbra.cs.mailclient.imap.ImapResponse.readUntagged(ImapResponse.java:99)
    	at com.zimbra.cs.mailclient.imap.ImapResponse.readResponse(ImapResponse.java:51)
    	at com.zimbra.cs.mailclient.imap.ImapResponse.read(ImapResponse.java:38)
    	at com.zimbra.cs.mailclient.imap.ImapConnection.readResponse(ImapConnection.java:648)
    	at com.zimbra.cs.mailclient.imap.ImapConnection.waitForResponse(ImapConnection.java:641)
    	at com.zimbra.cs.mailclient.imap.ImapConnection.sendRequest(ImapConnection.java:518)
    	at com.zimbra.cs.mailclient.imap.ImapRequest.send(ImapRequest.java:95)
    	... 18 more
    20

  4. #4
    Join Date
    Jul 2010
    Posts
    113
    Rep Power
    5

    Default

    The server needs to quote folder names which contain spaces

    C: C10 STATUS "Bulk Mail" (UIDVALIDITY UIDNEXT MESSAGES)
    S: * STATUS Bulk Mail (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)

    Should be:

    S: * STATUS "Bulk Mail" (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)


    Please open a ZD bug and we'll see if we can special case this for misbehaving servers. We might be able to assume that everything between STATUS and ( is the mailbox name. You should also file a bug with the server provider (goDaddy), since the problem ought to be fixed on both ends.

    I notice that they are handling sent items by putting an underscore in the name. They probably should do the same for Bulk Mail -> Bulk_Mail

    C: C06 STATUS "Sent Items" (UIDVALIDITY UIDNEXT MESSAGES)
    S: * STATUS Sent_Items (MESSAGES 1 UIDNEXT 2 UIDVALIDITY 1)

  5. #5
    Join Date
    Nov 2011
    Posts
    4
    Rep Power
    4

    Default

    Quote Originally Posted by jflanigan View Post
    The server needs to quote folder names which contain spaces

    C: C10 STATUS "Bulk Mail" (UIDVALIDITY UIDNEXT MESSAGES)
    S: * STATUS Bulk Mail (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)

    Should be:

    S: * STATUS "Bulk Mail" (MESSAGES 0 UIDNEXT 1 UIDVALIDITY 1)


    Please open a ZD bug and we'll see if we can special case this for misbehaving servers. We might be able to assume that everything between STATUS and ( is the mailbox name. You should also file a bug with the server provider (goDaddy), since the problem ought to be fixed on both ends.

    I notice that they are handling sent items by putting an underscore in the name. They probably should do the same for Bulk Mail -> Bulk_Mail

    C: C06 STATUS "Sent Items" (UIDVALIDITY UIDNEXT MESSAGES)
    S: * STATUS Sent_Items (MESSAGES 1 UIDNEXT 2 UIDVALIDITY 1)
    I have reported it to bugzilla:

    Bug 67924 &ndash; Old Courier IMAP server used by GoDaddy breaks IMAP protocol

    I've given up on GoDaddy though, they refused to accept it was their error, so I changed to another supplier...

Similar Threads

  1. ZCS 7.1.3 IMAP Folder sync problem
    By jfthibault in forum Administrators
    Replies: 1
    Last Post: 03-20-2013, 12:38 PM
  2. Outlook sync client
    By KevinH in forum Zimbra Connector for Outlook
    Replies: 600
    Last Post: 02-28-2011, 08:56 AM
  3. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 01:55 AM
  4. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  5. Replies: 3
    Last Post: 08-11-2007, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •