Results 1 to 5 of 5

Thread: Unable to sync IMAP folder with space in name

Threaded 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

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
  •