Re: [Evolution] Converting Contacts



OK I've done this twice and it has worked for me.  I wrote a little
crappy script to do this.  Try it.


#!/bin/bash
cp ~/evolution/local/Contacts/addressbook.db ~/addrbook.db
rm -f ~/evolution/local/Contacts/addressbook.db
strings ~/addrbook.db > /tmp/addr-temp$$
grep -v ^PAS-DB-VERSION /tmp/addr-temp$$ > /tmp/addr-temp1$$
grep -v ^UID /tmp/addr-temp1$$ >/tmp/addr-temp2$$
grep -v ^pas-id /tmp/addr-temp2$$ > ~/old-evo-addr-book.gcrd
rm -f /tmp/addr-temp$$
rm -f /tmp/addr-temp1$$
rm -f /tmp/addr-temp2$$

echo
echo "READ THIS, all of it"
echo
echo "Created gnomecard file ~/old-evo-addr-book.gcrd"
echo
echo "Now see if you can load the file into \"gnomecard\".  If you can
then"
echo "Evolution should load it just fine.  If you can't, open the file"
echo "in a text editor and check for bad formating.  I found some "
echo "BEGIN VCARD entries had two B's (BBEGIN VCARD).
echo
echo "Once you know it will load in \"gnomecard\" go and make one new
dummy "
echo "contact in Evolution and save it.  I found Evoulution segfaulted
and"
echo "I had to close it but when I executed it again my dummy contact
was"
echo "intact."
echo
echo "Now run Evolution and import the file \"old-evo-addr-book.gcrd\"
into"
echo "your contacts.  DON'T choose \"automatic\" for the file type,
choose"
echo " \"vcf, gcrd\".
echo
echo "Good luck"


On 07 Mar 2001 16:52:36 +0100, Xavier Bestel wrote:
Hi !

any hint to convert the old db format to the new one ? (I use RH6.2, latest
Evo snapshot, and my contacts are gone. fortunately I have a copy)

Thanks,

Xav


_______________________________________________
evolution maillist  -  evolution helixcode com
http://lists.helixcode.com/mailman/listinfo/evolution




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]