Re: ASU : can't import vcf contacts

2008-09-18 Thread jknechtel

Tanks, that works just fine for me. I exported around 70 contacts from
Evolution 2.22.3.1 and I was not able to import them before using your sed
string...

Johann


julien cubizolles wrote:
> 
> Le mardi 26 août 2008 à 17:54 +0200, julien cubizolles a écrit :
> 
>> I did :
>> 
>> sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' liste_nonphoto.vcf |
>> iconv -t 'ascii//TRANSLIT' > newfile.vcf
>> 
>> and newfile.vcf still has some HOME,VOICE fields
> 
> I adapted the sed line : it's now 
> sed -r -e 's/;TYPE=([^,]+),[^;]+([;:])/;TYPE=\1\2;/g' liste_nonphoto.vcf
> 
> and it's now picking up the "HOME,VOICE" strings whether they end up
> with a ";" or ":". The multiple entries are now all removed.
> 
> I also added a -e 's/\\n/ /g' to get read of some strange newlines I had
> lying around.
> 
> I can now import some of my contacts picked at random in a large .vcf
> file if I put them in another shorter .vcf file but I can't import the
> whole lot of them (several tens) because of some other error I can't
> find and the Freerunner isn't verbose enough to tell me which one
> fails. 
> 
> Is there some king of strict-vcf-format-checker somewhere I could use ? 
> 
> Julien.
> 
> 
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ASU-%3A-can%27t-import-vcf-contacts-tp784024p1099173.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-28 Thread julien cubizolles
Le mercredi 27 août 2008 à 23:33 +0200, Damien Thébault a écrit :

> I found the first problem because I splitted my vcf file into many
> small ones, and I was able to load only some of them. Then I compared
> them and find this problem.

That's what I'm, reluctantly, about to do...

> I don't know if the mail client is doing something wrong, or if it's
> the addressbook app. (or maybe the addressbook app is not VCF 3
> compliant).

It's evolution in my case, and I was indeed searching for its compliance to 
some strict standard. 




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-27 Thread Damien Thébault
On Wed, Aug 27, 2008 at 13:11, julien cubizolles <[EMAIL PROTECTED]> wrote:
> I can now import some of my contacts picked at random in a large .vcf
> file if I put them in another shorter .vcf file but I can't import the
> whole lot of them (several tens) because of some other error I can't
> find and the Freerunner isn't verbose enough to tell me which one
> fails.
>
> Is there some king of strict-vcf-format-checker somewhere I could use ?

I found the first problem because I splitted my vcf file into many
small ones, and I was able to load only some of them. Then I compared
them and find this problem.
I don't know if the mail client is doing something wrong, or if it's
the addressbook app. (or maybe the addressbook app is not VCF 3
compliant).

-- 
Damien Thebault

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-27 Thread julien cubizolles
Le mardi 26 août 2008 à 17:54 +0200, julien cubizolles a écrit :

> I did :
> 
> sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' liste_nonphoto.vcf |
> iconv -t 'ascii//TRANSLIT' > newfile.vcf
> 
> and newfile.vcf still has some HOME,VOICE fields

I adapted the sed line : it's now 
sed -r -e 's/;TYPE=([^,]+),[^;]+([;:])/;TYPE=\1\2;/g' liste_nonphoto.vcf

and it's now picking up the "HOME,VOICE" strings whether they end up
with a ";" or ":". The multiple entries are now all removed.

I also added a -e 's/\\n/ /g' to get read of some strange newlines I had
lying around.

I can now import some of my contacts picked at random in a large .vcf
file if I put them in another shorter .vcf file but I can't import the
whole lot of them (several tens) because of some other error I can't
find and the Freerunner isn't verbose enough to tell me which one
fails. 

Is there some king of strict-vcf-format-checker somewhere I could use ? 

Julien.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-26 Thread julien cubizolles
Le mardi 26 août 2008 à 17:07 +0200, Damien Thébault a écrit :

> > I tried
> > sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' | iconv -t
> > 'ascii//TRANSLIT' oldfile.vcf > newfile.vcf
> >
> 
> put oldfile.vcf before the pipe :
> sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' oldfile.vcf | iconv -t
> 'ascii//TRANSLIT' > newfile.vcf


Something isn't right :

I did :

sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' liste_nonphoto.vcf |
iconv -t 'ascii//TRANSLIT' > newfile.vcf

and newfile.vcf still has some HOME,VOICE fields


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-26 Thread Damien Thébault
On Tue, Aug 26, 2008 at 16:47, julien cubizolles <[EMAIL PROTECTED]> wrote:
> Le mardi 26 août 2008 à 16:07 +0200, Damien Thébault a écrit :
>
>>
>> It doesn't import correctly if you have more than one TYPE in TEL.
>>
>> (I did reply here:
>> http://n2.nabble.com/OM2008.8%2C-importing-VCF-contacts-tp781631p782244.html
>> with a little sed command)
>
> I think it should address my problems : I'm also exporting from
> evolution. I feel a little stupid though (not used to sed) : how do I
> use your sed line to convert my vcard file ?
>
> I tried
> sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' | iconv -t
> 'ascii//TRANSLIT' oldfile.vcf > newfile.vcf
>

put oldfile.vcf before the pipe :
sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' oldfile.vcf | iconv -t
'ascii//TRANSLIT' > newfile.vcf

(I saw some people saying that accent were working fine, maybe the vcf
file must be in iso-8859-15 format)
-- 
Damien Thebault

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-26 Thread julien cubizolles
Le mardi 26 août 2008 à 16:07 +0200, Damien Thébault a écrit :

> 
> It doesn't import correctly if you have more than one TYPE in TEL.
> 
> (I did reply here:
> http://n2.nabble.com/OM2008.8%2C-importing-VCF-contacts-tp781631p782244.html
> with a little sed command)

I think it should address my problems : I'm also exporting from
evolution. I feel a little stupid though (not used to sed) : how do I
use your sed line to convert my vcard file ?

I tried
sed -r -e 's/;TYPE=([^,]+),[^;]+;/;TYPE=\1;/g' | iconv -t
'ascii//TRANSLIT' oldfile.vcf > newfile.vcf

with no luck...


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-26 Thread Damien Thébault
On Tue, Aug 26, 2008 at 14:22, julien cubizolles <[EMAIL PROTECTED]> wrote:
> I tried the method described in
> http://wiki.openmoko.org/wiki/Import_Vcf_Contacts#Import_for_ASU.2FQtopia but 
> it fails with :
>
> On the ssh xterm
>
> LD_LIBRARY_PATH=/opt/Qtopia/lib /opt/Qtopia/bin/addressbook 
> /home/root/test.vcf
> QImage::scaled: Image is a null image
> QPixmap::fromImage: Cannot convert a null image
> QPixmap::fromImage: Cannot convert a null image
> QCoreApplication::postEvent: Unexpected null receiver
>
> On the Freerunner :
> The VCard document did not contain any valid contacts
>
> The vcard is just :
>
> BEGIN:VCARD
> VERSION:3.0
> FN:John Doe
> N:Doe; John
> EMAIL;TYPE=OTHER:[EMAIL PROTECTED]
> TEL;TYPE=WORK,VOICE:01 43 27 28 44
> END:VCARD
>
> What can be wrong ?
>

It doesn't import correctly if you have more than one TYPE in TEL.

(I did reply here:
http://n2.nabble.com/OM2008.8%2C-importing-VCF-contacts-tp781631p782244.html
with a little sed command)
-- 
Damien Thebault

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: ASU : can't import vcf contacts

2008-08-26 Thread Timo Scheffler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I experimented with it as well and found that the vCards I get from
exporting with Thunderbird Adressbook with the
"MoreFunctionsForAddressBook" Plugin works. They look like this:

BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8:Mustermann;Max
FN;CHARSET=UTF-8:Max Mustermann
ADR;HOME;POSTAL;CHARSET=UTF-8:;;;City;;12345;Deutschland
TEL;WORK;VOICE:0123456789
TEL;HOME;VOICE:0123456789
TEL;CELL;VOICE:0123456789
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
END:VCARD

I even could export 75 contacts, cat them into one file and import them
all at once using the information from the wiki.

julien cubizolles schrieb:
> I tried the method described in
> http://wiki.openmoko.org/wiki/Import_Vcf_Contacts#Import_for_ASU.2FQtopia but 
> it fails with :
> 
> 
> On the ssh xterm
> 
> LD_LIBRARY_PATH=/opt/Qtopia/lib /opt/Qtopia/bin/addressbook 
> /home/root/test.vcf 
> QImage::scaled: Image is a null image
> QPixmap::fromImage: Cannot convert a null image
> QPixmap::fromImage: Cannot convert a null image
> QCoreApplication::postEvent: Unexpected null receiver
> 
> On the Freerunner :
> The VCard document did not contain any valid contacts
> 
> The vcard is just :
> 
> BEGIN:VCARD
> VERSION:3.0
> FN:John Doe
> N:Doe; John
> EMAIL;TYPE=OTHER:[EMAIL PROTECTED]
> TEL;TYPE=WORK,VOICE:01 43 27 28 44
> END:VCARD
> 
> What can be wrong ?
> 
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki0CIYACgkQVX1dHwovnRHtbACg0Cugn3do5jDZKEbAN6v+MIwX
VmsAoIx0eLYm56tQDryEGvM1EYZAp2/4
=I82e
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


ASU : can't import vcf contacts

2008-08-26 Thread julien cubizolles
I tried the method described in
http://wiki.openmoko.org/wiki/Import_Vcf_Contacts#Import_for_ASU.2FQtopia but 
it fails with :


On the ssh xterm

LD_LIBRARY_PATH=/opt/Qtopia/lib /opt/Qtopia/bin/addressbook /home/root/test.vcf 
QImage::scaled: Image is a null image
QPixmap::fromImage: Cannot convert a null image
QPixmap::fromImage: Cannot convert a null image
QCoreApplication::postEvent: Unexpected null receiver

On the Freerunner :
The VCard document did not contain any valid contacts

The vcard is just :

BEGIN:VCARD
VERSION:3.0
FN:John Doe
N:Doe; John
EMAIL;TYPE=OTHER:[EMAIL PROTECTED]
TEL;TYPE=WORK,VOICE:01 43 27 28 44
END:VCARD

What can be wrong ?


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community