Hello Anuj,

On 27.02.2014, at 13:20, anuj chauhan <acd...@gmail.com> wrote:

> I am trying to send a higher value for "Max Occour" for Note field,

May I ask for the context of this? I've never seen vCards with more than one 
NOTE field in the wild, so I'm curious why you'd want a MaxOccur of 200? It 
might be easier to help when I understand what you are trying to archieve with 
your devInf modifications.

> while doing so my database gets currupted i.e
> the values in vcard get stored in jumbled sequence.
> Below is the code snippet and how the value are being stored while running 
> sync-evolution on this
> 
> Code for output Dev Inf sent from client

And the client is Syncevolution?

> <Property>
> <PropName>NOTE</PropName>
> <MaxSize>1000</MaxSize>
> <MaxOccur>200</MaxOccur>
> </Property>
> <Property>

So how did you make Syncevolution show MaxOccur 200 here?

Without seeing the libsynthesis config that leads to this MaxOccur it is 
difficult for me to analyze what might be going wrong when parsing the vCard 
below...

> Response of Server

What Server? Also SyncEvolution or some third-party?

> <Data>
> BEGIN:VCARD VERSION:2.1 N:chauhan;anuj;pratap singh;anuj01;CHAUHAN FN:pratap 
> singh anuj01 anuj ADR:HI ALL;;;;;; BDAY:1987-08-19 
> EMAIL;INTERNET:acd...@gmail.com.asdasdasdassssssssssssdddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaad
>  URL:helloall.anuj.com TITLE:Sr Softeare engineer ORG:ABC;AWS 
> TEL;TYPE=VOICE:0011234568 NOTE:HI ALL PHOTO;ENCODING=BASE64: MDA0NjM3NDk4OQ== 
> END:VCARD
> </Data>

Apart from the CRLFs which are not visible here (I assume this is due to 
copy&paste into the mail) this looks ok so far.

> Data Dumped in Client Database
> BEGIN:VCARD
> N:chauhan;anuj;pratap singh;anuj01;CHAUHAN
> FN:pratap singh anuj01 anuj
> TEL:0011234568
> ADR:HI ALL\;\;\;\;\;\;
> EMAIL;TYPE=INTERNET:acd...@gmail.com
> PHOTO;ENCODING=BASE64;ENCODING=B:MDA0NjM3NDk4OQ==
> VERSION:3.0
> ORG:ABC\;
> TITLE:Sr Softeare engineer
> BDAY:19870819
> URL:helloall.anuj.com
> NOTE:HI ALL
> NOTE:4
> NOTE:BASE64
> END:VCARD

So you have an array field for NOTE here?

> When i change MaxOccur value to a lower value (1-10) syncevolution works 
> fine.but on higher numbers or setting  repeat=array ,values in dumped 
> vcard(database) get currupted.

Note that if you set "repeat" in <position> to a value, you must make sure the 
underlying <field> is an array or there are subsequent fields that can take the 
value of the repeated occurrences.

Best Regards,

Lukas

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to