maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Contact Importing (https://talk.maemo.org/showthread.php?t=35294)

白い熊 2009-12-01 11:33

Re: Contact Importing
 
Quote:

Originally Posted by lardman (Post 397609)
Well to make your life easier it might have exported all your contacts to a single .vcf file.

Unless you use a program that doesn't export contacts to a single file, like... bbdb for instance

Quote:

I don't imagine that people importing hundreds of vCards is a normal use-case.
Maybe not, but for GNU, is this such a special case? I've got this problem.

Quote:

If it's a specific problem for you, as you can't use sync or go back and export as a single .vcf, the code necessary to import them is pretty simple so you could write yourself a little app to import them all.
I haven't developed for the N900 yet.

Could you give me a hint, so that I can write this, just a simple commandline app, no hildon UI stuff etc.. Where can I look for the code? Thanks.

lardman 2009-12-01 15:17

Re: Contact Importing
 
http://wiki.maemo.org/Documentation/...dress_Book_API

and
http://maemo.org/api_refs/5.0/5.0-fi...book/ch01.html
http://maemo.org/api_refs/5.0/5.0-final/libosso-abook/

christexaport 2009-12-01 15:33

Re: Contact Importing
 
If you've migrated from Symbian, then you probably have imported hundreds of vcf files. We could just drag and drop, then sync from the contact app. Not possible with Maemo. pretty stupid for something we call a computer. Why does a computer need a computer? I can keep stuff in my Files on Ovi account and retrieve them online, but I have to add to COntacts one by one.

stobbsc 2009-12-01 15:38

Re: Contact Importing
 
Chris, if you have a vcard with multiple contacts in it will the N900 split the contacts out, or will it only load the first contact in the file?

If it splits them out, then you could always write a bat file to combine multiple vcards and then import that., this is what I did with my N97 and google

christexaport 2009-12-01 15:55

Re: Contact Importing
 
that's beyond my skill level. and I don't know how to combine my 300+ contact into one anyway. what phone does that? Please don't recommend a desktop app. I only use mobile platforms.

sljonson 2009-12-01 16:15

Re: Contact Importing
 
Quote:

Originally Posted by stobbsc (Post 402932)
Chris, if you have a vcard with multiple contacts in it will the N900 split the contacts out, or will it only load the first contact in the file?

If it splits them out, then you could always write a bat file to combine multiple vcards and then import that., this is what I did with my N97 and google

Technically you can't have a vcard with multiple contacts. What you can have is file with multiple vcards in it. The N900 Contacts app can import that w/o any problem.

I maintain my contacts in Evolution. I saved my entire addressbook as single vcard file. Scp'ed it the N900 and imported the vcard file in Contacts apps. All of my contacts got imported with no problem. I just had to merge IM server contacts with my imported contacts.

sljonson 2009-12-01 16:21

Re: Contact Importing
 
Quote:

Originally Posted by christexaport (Post 402972)
that's beyond my skill level. and I don't know how to combine my 300+ contact into one anyway. what phone does that? Please don't recommend a desktop app. I only use mobile platforms.

The N900 Mobile Computer can do that. If you can get your 300+ vcards copied to the N900, it's trivial to combine them into 1 file. If the file names are something like 'xxxxx.vcf', you would do something like this in the Xterminal.

cat *.vcf > combined.vcf

Yes. It is just that simple.

Nitchers 2009-12-01 16:24

Re: Contact Importing
 
I downloaded all my gcontacts in vcard format then synced them all in a oner with my n900, hope this helps.

christexaport 2009-12-01 16:24

Re: Contact Importing
 
do I type it exactly as above?

sljonson 2009-12-01 16:56

Re: Contact Importing
 
Quote:

Originally Posted by christexaport (Post 403037)
do I type it exactly as above?

OK a more intensive howto. First you need to have all of you contacts vcards copied into your N900. It's best if you can put them all into the same location (i.e. in a folder under Mydocs). And the command to use depends on the files names of the vcard files. Evolution used the extension '.vcf' when I export my contacts. If you copied all of you contacts vcards to a separate folder it makes things even easier.

I'll give step by step for 2 scenarios. First files named 'xxxx.vcf' dumped into MyDocs along with everything else.

1. Start up the X Terminal application
2. enter the command the following commands

Quote:

cd MyDocs
cat *.vcf > combined.vcf
That will concatenate all of you individual vcards into a large vcard file called 'combined.vcf'

3. Go into Contacts -> Menu -> Get Contacts -> Import contact file.
4. drill down into your named N900 folder and you should see the file 'combined.vcf'
5. Select 'combined.vcf' and let Contacts do it's thing.


Another scenario, you copied all of you contacts to a folder under MyDocs (i.e. the 25GB mass storage partition). Let's assume the folder name is called 'contacts'.

1. Start up the X Terminal application
2. enter in the following commands

Quote:

cd Mydocs/contacts
cat * > combined.vcf
Note: in this case it doesn't matter what the vcard file named as. The asterisk ('*') wll pick up all of the files in the contacts folder.

3. Go into Contacts -> Menu -> Get Contacts -> Import contact file.
4. drill down into your named N900 folder -> contacts folder and you should see the file 'combined.vcf'
5. Select 'combined.vcf' and let Contacts do it's thing.

Edit: And yes, syntax for those commands is very important. But you really can't hurt anything if you get it wrong. ;)


All times are GMT. The time now is 03:50.

vBulletin® Version 3.8.8