[Om2008.9] How to export Vcf Contacts from FR?

"Marco Trevisan (Treviño)" mail at 3v1n0.net
Thu Oct 16 18:38:56 CEST 2008


Matthias Apitz ha scritto:
> Hello,
> 
> I've recently moved from a normal cellphone to FR and punched out of the
> old cellphone all my contacts to a CSV file, converted this to Vcf
> (which is easy using the KDE application 'kontact' because it supports
> both formats on import/export); than I've loaded the resulting addr.vcf
> file into my FR as described in
> http://wiki.openmoko.org/wiki/Import_Vcf_Contacts
> 
> so far so good; but how can I export now all these (and new added)
> contacts to a Vcf file, for example before flashing the rootfs on next
> update?

Some time weeks ago I used an huge workaround, but it worked.
 Contacts -> Options -> Send All.. -> (in qtopia it let you choose how
send them, select by email) -> Don't send the message that pop ups, but
save it as draft.

Now, get the mail with the contacts attached using:

cp /home/root/Applications/qtmail/mail/$(ls -t \
/home/root/Applications/qtmail/mail/ | head -n1) /tmp/contacts.eml

(it copies the latest modified mail/sms to /tmp/contacts.eml, you can
find the needed file also grepping like this:

grep "vCard describing multiple contacts" \
/home/root/Applications/qtmail/mail/*

After you got the mail with the contacts attached, copy it on your PC.
If you can handle the .eml files with your mail client, just open it and
save the attachment. Otherwise open that file with a text editor and
decode the base64 encoded text (under "MIME-Version: 1.0") using a tool
like this [1] (if you don't want to write down few lines of python/php/c...)

A little tricky, but it works :)


[1] http://www.opinionatedgeek.com/dotnet/tools/Base64Decode/

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/





More information about the community mailing list