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
  • Evolution error "summary and folder mismatch even after a sync" In my wife's profile on the desktop she said she was getting an error message sending and receiving messages so.... when doing a send/receive of mail I saw evolution giving an error message of "summary and folder mismatch even after a sync". It seemed to download mail ok, it was......
  • 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......
  • Converting spaces in filenames to underscores Linux supports long file names, in some (many?) ways better than windows. However, when I moved over to linux I had tons of files with spaces in the name. This isn't really a problem usually, but it can be a bit annoying having to enclose the filename in quotes for......
Blog Traffic Exchange Related Websites
  • 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......
  • What is an Ocarina? The Ocarina is a somewhat obscure woodwind instrument, pronounced awk-uh-reen-uh. It is a wind instrument derived from ancient flutes. While there are several different variations of the ocarina concept, the typical ocarina is an oval-shaped instrument with between four and twelve finger holes and a tubular mouth piece that projects......
  • 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......
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