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
  • 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......
  • New office suite release Desktop Linux reported Friday that Thinkfree office has promoted their $49.95 office suite at LinuxWorld (last week.) This is Thinkfree Office 3. It's available for Windows, Mac and Linux. Supports Microsoft office file formats, has a Microsoft-Office-like interface and "critical feature compatibility". Thinkfree Office features a Word Processor, Spreadsheet and......
  • Another trackback spam storm overnight.... All of the the swarms of trackback spam seemed to last an hour give or take a few minutes, so it does look kind of like "rent-a-bot" activity, lots of different IP addresses, trackback spam sites seem to have a common theme - the last batch was insurance type sites..........
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......
  • 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......
  • 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......
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