|
2008-01-18
, 09:37
|
|
Posts: 166 |
Thanked: 26 times |
Joined on Jun 2007
@ Hampshire, UK
|
#22
|
|
2008-01-18
, 12:07
|
Posts: 259 |
Thanked: 72 times |
Joined on Dec 2007
@ Halifax, NS
|
#23
|
#!/usr/bin/perl my $fn=100; my $lastfn=0; while (<>) { if ($_ =~ (/^\n/)) { $fn+=1; print JOUTFILE "\n"; next;} if ($fn != $lastfn) { if (<JOUTFILE>) { print JOUTFILE "quit\n"; } close(JOUTFILE); open(JOUTFILE, ">new$fn.vcf"); $lastfn=$fn; print JOUTFILE "ADD VCARD $_"; } else { if ($_ =~ (/^END:VCARD/)) { print JOUTFILE $_ . "quit\n"; next;} print JOUTFILE $_; } }
mkdir vcf cd vcf perl ../vconvert.pl ../yourfile.vcf
for i in $(ls new*.vcf); do gpesyncd - ; done
|
2008-01-18
, 16:51
|
Posts: 215 |
Thanked: 44 times |
Joined on Dec 2007
|
#24
|
I was full of hope for a moment...... damn, no luck here.
I used this web site to convert an Outlook .csv to .vcf
http://homepage.mac.com/phrogz/CSV2vCard_v2.html
Then used your text changes but still failed.
|
2008-01-18
, 16:59
|
|
Posts: 48 |
Thanked: 4 times |
Joined on Jan 2008
|
#25
|
|
2008-01-18
, 17:00
|
Posts: 12 |
Thanked: 2 times |
Joined on Dec 2007
|
#26
|
Me too, same libraries.
But I've discovered that the problem is not GPE Contacts, it's in OS2008's network file access!
As a shortcut in transferring a vcf file from my Windows PC to the N800, I just import it directly from a shared folder on the PC to GPE Contacts. That worked fine using Wizard Mounter in OS2007. In OS2008 it appears to work, but something's going wrong - GPE Contacts says it imported the file successfully, but no data shows up. If I copy the same vcf file to local memory using the File Manager, the operation succeeds and the vcf file contents show up correctly in GPE Contacts.
Therefore, it looks like there's a bug in the network file access in OS2008.
|
2008-01-18
, 17:05
|
Posts: 12 |
Thanked: 2 times |
Joined on Dec 2007
|
#27
|
After the difficulties discussed in this thread, I was a bit surprised (but gratified) that I was able to export my address book as vCard (2.1) from Lotus Notes, then import to GPE, on the first pass. It took a LONG time to import the file, though . . . my address book was only 69K, but it took 20-25 minutes for the import to finish. I thought for sure it had given up the ghost. The addresses were slightly munged in the process (city and state were transposed), but nothing I can't clean up manually.
|
2008-01-18
, 17:14
|
|
Posts: 239 |
Thanked: 53 times |
Joined on Jan 2008
@ Massachusetts
|
#28
|
|
2008-01-21
, 21:09
|
Posts: 215 |
Thanked: 44 times |
Joined on Dec 2007
|
#29
|
|
2008-01-21
, 21:42
|
Posts: 49 |
Thanked: 7 times |
Joined on Apr 2007
|
#30
|
Get your .vcf file ready. Open it up in a text editor.
Replace "BEGIN:VCARD" with "ADD VCARD BEGIN:VCARD" (don't use the quotes)
Next, replace "END:VCARD" with "END:VCARD
QUIT" (please note that I used a carriage return in there. Find a text editor that allows you to search and replace with regular expressions.
Now run: gpesyncd < yourfile.vcf
Please tell me this works. I actually went one step farther to get it to work (I used a short perl script to split each address into separate files). If you don't have to do that, so much better. If you need it, I'll gladly post the script.