Re: [Evolution-hackers] Evolution contacts don't retain experimental vcard fields?



Yeah, unfortunately that's due to the ECard stuff we have presently.  It
parses the vcard and ignores any fields it doesn't know about.  Then
later when evolution wants to transmit the vcard to the wombat it
converts the ECard to a string (the second one you list.)

The new stuff i've been writing has a much better chance of doing the
right thing in these instances.  There's still some possibility for data
loss (if you import into a folder that doesn't support arbitrary fields,
like LDAP or exchange), but the file/vcf backends should work just fine,
and not lose anything.

Even if you bypass the ebook api and use the idl directly, you run the
risk of losing data if you make any modifications to the vcard from
inside evolution (through the same ECard parsing problem as above.)

Chris

On Thu, 2003-08-07 at 14:52, Patrick Gerzanics wrote:
> I've been working on importing a variety of vcards into Evolution.  However,
> I've noticed that any 'experimental' fields are not retained by Evolution.
> Example:
> 
> I import this vcard:
> 
> BEGIN:VCARD
> 
> FN:Test Experimental
> N;INITIALS=E.T.:Experimental;Test
> UID:00000000322B025AEE8D2A4096B10A8138BF9E01A4AB2502
> X-TEST-GENDER:Male
> END:VCARD
> 
> with X-TEST-GENDER as the experimental field.
> 
> When I export it I get:
> 
> BEGIN:VCARD
> VERSION:2.1
> X-EVOLUTION-FILE-AS:Experimental, Test
> FN:Test Experimental
> N:Experimental;Test
> UID:pas-id-3F32C8DF00000199
> END:VCARD
> 
> Is there any way to avoid this data loss, or is it a result of the libversit
> vcard parsing library?  The goal is to get it work programatically via the
> CORBA interfaces as well, but when that didn't work I started trying
> import/export by hand, but with the same data loss result.
> 
> Any thoughts on this would be appreciated.
> 
> Cheers.
> 
> -Patrick
> 
> _______________________________________________
> evolution-hackers maillist  -  evolution-hackers lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]