Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old 11-08-2005, 09:31 AM
Active Member
 
Posts: 41
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
Reply With Quote
  #22 (permalink)  
Old 11-08-2005, 09:43 AM
Zimbra Employee
 
Posts: 1,434
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.
Reply With Quote
  #23 (permalink)  
Old 11-11-2005, 03:02 AM
Junior Member
 
Posts: 8
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?
Reply With Quote
  #24 (permalink)  
Old 11-11-2005, 08:25 AM
Zimbra Employee
 
Posts: 1,434
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.
Reply With Quote
  #25 (permalink)  
Old 11-28-2005, 11:19 AM
Active Member
 
Posts: 41
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
Reply With Quote
  #26 (permalink)  
Old 12-01-2005, 09:13 AM
Special Member
 
Posts: 110
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
Reply With Quote
  #27 (permalink)  
Old 12-21-2005, 11:36 AM
Junior Member
 
Posts: 8
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.
Reply With Quote
  #28 (permalink)  
Old 12-21-2005, 11:58 AM
Zimbra Employee
 
Posts: 4,792
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.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #29 (permalink)  
Old 12-21-2005, 12:07 PM
Zimbra Employee
 
Posts: 93
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?
Reply With Quote
  #30 (permalink)  
Old 12-22-2005, 08:30 AM
Junior Member
 
Posts: 8
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.