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

Reply
 
LinkBack (4) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #21 (permalink)  
Old 11-08-2005, 09:31 AM
rodrigoccurvo rodrigoccurvo is offline
Senior Member
 
Join Date: Sep 2005
Posts: 41
rodrigoccurvo is on a distinguished road
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
dkarp dkarp is offline
Zimbra Employee
 
Join Date: Aug 2005
Posts: 1,324
dkarp is on a distinguished road
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
traaidmark traaidmark is offline
Junior Member
 
Join Date: Sep 2005
Posts: 8
traaidmark is on a distinguished road
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
dkarp dkarp is offline
Zimbra Employee
 
Join Date: Aug 2005
Posts: 1,324
dkarp is on a distinguished road
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
rodrigoccurvo rodrigoccurvo is offline
Senior Member
 
Join Date: Sep 2005
Posts: 41
rodrigoccurvo is on a distinguished road
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
mintra mintra is offline
Senior Member
 
Join Date: Nov 2005
Location: UK
Posts: 74
mintra is on a distinguished road
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
Sam Hunter's Avatar
Sam Hunter Sam Hunter is offline
Junior Member
 
Join Date: Dec 2005
Posts: 8
Sam Hunter is on a distinguished road
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
KevinH KevinH is offline
Zimbra Employee
 
Join Date: Aug 2005
Location: San Mateo, CA
ZCS Version: Zimbra.latest ;)
Posts: 4,782
KevinH is on a distinguished road
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.
__________________
Subscribe to our Blog - Bugzilla - Wiki - Downloads
Reply With Quote
  #29 (permalink)  
Old 12-21-2005, 12:07 PM
tim brennan tim brennan is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 90
tim brennan is on a distinguished road
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
Sam Hunter's Avatar
Sam Hunter Sam Hunter is offline
Junior Member
 
Join Date: Dec 2005
Posts: 8
Sam Hunter is on a distinguished road
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
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/administrators/16-importing-exsisting-folders-messages-address-books.html
Posted By For Type Date
Administrators - Page 13 - Zimbra - Forums This thread Refback 09-01-2007 07:33 PM
mitchc2's bookmarks on del.icio.us This thread Refback 07-31-2007 07:50 PM
Contact importing, - how to import This thread Refback 07-09-2007 05:56 AM
Importing Exsisting Folders/Messages/Address books - Page 5 - Zimbra - Forums This thread Refback 06-12-2007 04:30 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Address Books & Calendars via CLI shideg Administrators 1 11-14-2006 01:20 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0