Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 78

Thread: Importing Exsisting Folders/Messages/Address books

  1. #21
    rodrigoccurvo is offline Active Member
    Join Date
    Sep 2005
    Posts
    41
    Rep Power
    9

    Default

    Quote Originally Posted by GertThiel
    Do not forget to include "--syncinternaldates" to keep keep important date intact!

    - Gert
    Do you or anyone else know how imapsync does that syncinternaldates? I heard IMAP doesn't support changing internal date, so I'd like to verify them somehow (I took a look at the imapsync code, but had no luck). How do I verify if the internal dates are being synchronized correctly?

    Rodrigo

  2. #22
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default --syncinternaldates

    The source IMAP server stores an INTERNALDATE on each message. When the program adds the message to the destination IMAP server, it specifies the desired INTERNALDATE in the APPEND command it uses to add the message to the target folder. If this is successfult, your migrated mailbox will contain messages with various dates; if it fails, your migrated mailbox will contain messages all dated today.

  3. #23
    traaidmark is offline Junior Member
    Join Date
    Sep 2005
    Posts
    8
    Rep Power
    9

    Default contacts import

    ok so we now know how to import your accounts, and your old mail, but how do you import the contacts book for every account?

    is it the same as with the messages, just with different values?

  4. #24
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Export to .csv

    Quote Originally Posted by traaidmark
    ok so we now know how to import your accounts, and your old mail, but how do you import the contacts book for every account?
    Contacts generally aren't surfaced via IMAP, so imapsync won't work for migrating them. But you probably can export your contacts as a .csv file and import that file into Zimbra. To do the Zimbra import, in the Zimbra Web UI go to Options > Contacts > Import.

  5. #25
    rodrigoccurvo is offline Active Member
    Join Date
    Sep 2005
    Posts
    41
    Rep Power
    9

    Default

    Hi,

    I've tested imapsync with Zimbra, and it seems that imapsync keeps only the read/unread/deleted flags, but not the others like "IMPORTANT". Does anyone know if there is a way to keep them too with imapsync? If not, what other tools or fix can be used?

    Regards,

    Rodrigo

  6. #26
    mintra is offline Special Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    117
    Rep Power
    9

    Default IMAP Shell Script

    Here is my little script I use for IMAP Sync, it may be of use to someone.

    basiclly all the users are in a file called userlist.txt

    which looks like this,

    Code:
    username1;password1
    username2;password2
    username3;password3
    username4;password4
    username5;password5
    This assumes that the usernames and passwords are the same on both servers. also, the username

    is just everything before the @ in the email address.

    I wrote it so I could monitor IMAP sync's progress and keep logs of what it does.

    Code:
    #!/bin/bash
    
    logfile="sinklog.txt"
    
    host1=123.123.123.123
    #host1 is Source
    
    host2=321.321.321.321
    #host2 is Dest
    
    domain=xyz.com
    #domain is where email account is
    #everything after @ symbol
    
    ###### Do not modify past here
    #######################################
    
    date=`date +%X_-_%x`
    
    echo "" >> $logfile
    echo "------------------------------------" >> $logfile
    echo "IMAPSync started..  $date" >> $logfile
    echo "" >> $logfile
    
    { while IFS=';' read  u1 p1; do 
            user=$u1"@"$domain    
    	echo "Syncing User $user"
    	date=`date +%X_-_%x`
            echo "Start Syncing User $u1"
            echo "Starting $u1 $date" >> $logfile
    imapsync --nosyncacls --syncinternaldates --host1 $host1 --user1 "$user" --password1 "$p1" 
    
    --host2 $host2 --user2 "$user" --password2 "$p1"
         	date=`date +%X_-_%x`
            echo "User $user done"
            echo "Finished $user $date" >> $logfile
    	echo "" >> $logfile
    
    	done ; } < userlist.txt
    
    date=`date +%X_-_%x`
    
    echo "" >> $logfile
    echo "IMAPSync Finished..  $date" >> $logfile
    echo "------------------------------------" >> $logfile

  7. #27
    Sam Hunter's Avatar
    Sam Hunter is offline Junior Member
    Join Date
    Dec 2005
    Posts
    8
    Rep Power
    9

    Default Import Contacts

    (Zimbra Network M2 on FC4)
    Is there a special format for the contact import file? I assumed that it was a CSV, so I exported from Thunderbird, but when I import to Zimbra, I get an error:

    A network service error has occurred.

    msg - system failure: java.lang.NullPointerException
    com.zimbra.cs.service.ServiceException: system failure: java.lang.NullPointerException
    at com.zimbra.cs.service.ServiceException.FAILURE(Ser viceException.java:99)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:260)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:163)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:84)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:226)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:526)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:825)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
    at com.zimbra.cs.mailbox.ContactCSV.initFields(Contac tCSV.java:440)
    at com.zimbra.cs.mailbox.ContactCSV.getContactsIntern al(ContactCSV.java:546)
    at com.zimbra.cs.mailbox.ContactCSV.getContacts(Conta ctCSV.java:571)
    at com.zimbra.cs.service.mail.ImportContacts.handle(I mportContacts.java:73)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:249)
    ... 21 more

    code - service.FAILURE
    method - ZmCsfeCommand.prototype.invoke
    detail - soap:Receiver


    A line from the CSV file looks like (slightly edited):
    Sam,Hunter,Sam Hunter,,shunter@xxxxxxxxx.com,,(xxx) xxx-xxxx,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


    Am I doing something wrong here? I have tried this in both FF1.5 and IE.

    thanks,

    Sam

    Quote Originally Posted by dkarp
    Contacts generally aren't surfaced via IMAP, so imapsync won't work for migrating them. But you probably can export your contacts as a .csv file and import that file into Zimbra. To do the Zimbra import, in the Zimbra Web UI go to Options > Contacts > Import.

  8. #28
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by Sam Hunter
    Is there a special format for the contact import file? I assumed that it was a CSV, so I exported from Thunderbird, but when I import to Zimbra, I get an error:
    CSV is correct. To get the format (easy way) is just create a contact in a Zimbra test account with all the fields you are interested in. Export that contact then use that as a template for your imports. If that doesn't work let us know and we'll take a look. If you could post the CVS file then we can use it as a test case on our side.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  9. #29
    tim brennan is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    93
    Rep Power
    9

    Default

    Is there no header line in your CSV file? Can you post the first few lines of the file (feel free to edit them down, i just want to see how the file starts)...

    I'm guessing that your file doesn't have a column-header line at the top (ie with the column names) and that the first line has blank values (",,,,") in it....is that correct?

  10. #30
    Sam Hunter's Avatar
    Sam Hunter is offline Junior Member
    Join Date
    Dec 2005
    Posts
    8
    Rep Power
    9

    Default

    No, it had no column header, some clients I've used in the past had an interface for defining the field mappings on import so I thought Zimbra might do this too.

    This is the first line in the file:
    ,,,,s______@_______.com,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,


    Is there any support for LDIF files? When I upload one of those, Zimbra doesn't report any errors, but it doesn't import any contacts either.

Page 3 of 8 FirstFirst 12345 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Importing Address Books & Calendars via CLI
    By shideg in forum Administrators
    Replies: 1
    Last Post: 11-14-2006, 02:20 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
  •