On Thursday 04 October 2007 22:14, Gary Baribault wrote:
> Hi guys, I have an IPAQ with about 900 contacts .. I am trying to get
> them to the GPE-Contact program. I created a massive vcard file, but it
> wont import it. I then used BT to thansfer many of them, but GPE-Contact
> seems to only let me import one at a time .. does anyone know how to
> import about 900 vcard files at one time into the program?
Gary,
There is a program called gpesyncd, which is used by the Opensync plugin but
which can also be used by itself.
To use it to import all your cards you would need to edit your "massive vcard
file". The single file presumably contains many sections of the form:
BEGIN:VCARD
... card details...
END:VCARD
You would need to replace all the BEGIN:VCARD lines with:
ADD VCARD BEGIN:VCARD
If you do that, you can import all the vcards using gpesyncd by saying:
gpesyncd <your-file
However, there is one serious problem with this: if errors occur, gpesyncd
will continue with the rest of the cards and it could be quite hard to find
which cards have successfully imported and which have not. You can just make
a log file and check it carefully but with hundreds of cards that is going to
be really tough.
You would probably be better to create a shell script which imports the cards
one by one so that you can ignore successful imports and log explicit errors
when the import fails. If gpesyncd successfully does an ADD it outputs:
OK:nnnnnnnnnn
where nnnnnnnnnn is some number. You would have to use that output to check
whether the import succeeded.
Graham
_______________________________________________
Gpe-list mailing list
Gpe-list@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/gpe-list