Migrating Contacts from Evolution to Kontact



I’ve toyed around with the idea of migrating everything over to Kontact for my mail. I’ve used Evolution since moving over to linux, but there are some things about Kontact that just seem slicker to me. While I was doing the install, I had the laptop setup to receive messages through IMAP and used Kontact as the client. There were a few features that I wanted to spend a bit more time with. So, the first thing is getting the data into Kontact.


I’m most concerned about my contacts, or addressbook. Let’s face it. If I lost all my old emails it would be disappointing, there are some I couldn’t afford to lose and their copied to the imap server as a backup. Contacts though are another matter. To do this, here’s what I did…

First open Evolution and go to the contacts view. Press control-a to select all contacts and when their all highlighted go to the file menu and select “save as vcard”. This will save the whole list to a file that you get to name (and place). I made an export directory and saved to list.vcf

So, after this I tried an import into Kontact. (Kontact – choose contacts, file, import, import vCard, select file). There were a couple odd things though, home telephone numbers showed up as other. It seems evolution classified them as home/voice… time for sed – I deleted the list from contact and went to the command line. Note – there are gui tools that will search and replace text in a file that work quite well – I found it quicker to do this.

cd export
cat list.vcf | sed -e ‘s/TYPE=HOME;TYPE=VOICE/TYPE=HOME/g’ > list2.vcf

Next, I noticed a similar problem with Work/Voice – so…

cat list2.vcf | sed -e ‘s/TYPE=WORK;TYPE=VOICE/TYPE=WORK/g’ > list3.vcf

Finally, I imported again and noticed that address fields looked odd… for instance what should have been Asheville, NC showed up as Asheville, NC (too much escaping in the vcf?) – so I deleted the contacts one last time and did…

cat list3.vcf | sed -e ‘s/\,/,/g’ > list4.vcf

Imported again and most everything looks good. The only problem left is about 11 contacts that didn’t have a true name or organization entered, for some reason when I’d entered it evolution only gave it a X-EVOLUTION-FILE-AS: field… For 11 entries it’s probably not worth trying to do an automated parsing. (It would likely interfere with entries that DO have either the name or organization fields.)

Related Posts

Blog Traffic Exchange Related Posts
  • Remote Tech Support using VNC (Ultravnc SC and x11vnc+wrapper script) Ok, some time back I'd done a writeup on UltraVNC SC, which is a nice customizable (windows version) VNC server that essentially let's someone doing remote support build their own downloadable .exe that runs and automatically tries to make a direct connection to a "listening" vnc viewer. It's good for......
  • Moving from Evolution to Konqueror After several weeks of good behaviour from Evolution 2.4 since the Mandriva 2006 upgrade, I started getting a wierd error on sending messages *(Mail From response Error Unknown). Nothing within my settings for Evolution had changed since the night before when things worked... I tested with Kontact and was able......
  • Microsoft should use a /home partition.... I saw this yesterday or day before... George Ou has said that Microsoft should move user data to it's own volume (or partition). He is ABSOLUTELY RIGHT. I think these days the default install for any modern operating system ought to assume you care enough about your data to seperate......
Blog Traffic Exchange Related Websites
  • Selecting the Best Garage Door Today, we have so many options when it comes to picking a garage door that it can be a bit overwhelming. However, there are a few guidelines and tips you can use to make the selection process a lot easier. Let's take a look at the four main types of......
  • 3 Ways The Worldwide Economy Will Put Your Small Business In The Toilet Many people are glad to bid farewell to 2008. 2008 turned into one of the most tumultuous years financially that the United States has ever experienced in modern times, and what affects the U.S. economy affects most of the rest of the world economically. The U.S. National Bureau of Economic......
  • Which Saxophone to Play? Are you thinking about picking the saxophone up for the first time? The person who invented the saxophone to begin with, a man named Adolphe Sax, drew up plans for a total of fourteen different types of saxophones. There are at least eleven different types of saxophones out there, with......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site