GPE-contact import

View: New views
4 Messages — Rating Filter:   Alert me  

GPE-contact import

by Gary Baribault-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks

Gary Baribault


_______________________________________________
Gpe-list mailing list
Gpe-list@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/gpe-list

Re: GPE-contact import

by Graham Cobb-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: GPE-contact import

by Florian Boor-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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?

which version of gpe-contacts and libmimedir do you use? Up to date releases
should be able to import multiple vcards from a single file, but it only imports
them properly if all can be parsed without errors. For 900 that's quite a
challenge... Another solution would be to sync them using OpenSync.

Greetings

Florian

--
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-14
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        florian.boor@...

1D78 2D4D 6C53 1CA4 5588  D07B A8E7 940C 25B7 9A76

_______________________________________________
Gpe-list mailing list
Gpe-list@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/gpe-list

Re: GPE-contact import

by Gary Baribault-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My gpe-contact and gpe-calendar are at 2.8 .. libmimedir-gnome0 is also
at 2.8.

Gary Baribault

Florian Boor wrote:

> Hi,
>
> 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?
>
> which version of gpe-contacts and libmimedir do you use? Up to date releases
> should be able to import multiple vcards from a single file, but it only imports
> them properly if all can be parsed without errors. For 900 that's quite a
> challenge... Another solution would be to sync them using OpenSync.
>
> Greetings
>
> Florian
>

_______________________________________________
Gpe-list mailing list
Gpe-list@...
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/gpe-list
LightInTheBox - Buy quality products at wholesale price