Thanks Patrick.
Yes i am using file storage and am modifying the 01card-profile.xml.
However, i am facing an issue with its modification.
I removed all the telephone tags except for home and work.
The server has other fields also populated. Pasted below:
VERSION:3.0
PRODID:-//Synthesis AG//NONSGML SyncML Engine V3.4.0.41//EN
REV:20100328T103410Z
N:gupta;sachin;;;
FN:chin
X-EVOLUTION-FILE-AS:
X-GENDER:
NICKNAME:
TITLE:foo
ORG:ipol;;;
ROLE:
TEL;TYPE=HOME,VOICE:9
TEL;TYPE=HOME,FAX:6
TEL;TYPE=CELL:7
TEL;TYPE=PREF:1
TEL;TYPE=WORK,VOICE:8
EMAIL;TYPE=INTERNET:a@a.com
URL:
X-MOZILLA-HTML:
ADR:;;;;;;
BDAY:
NOTE:
PHOTO:
END:VCARD
On doing a refresh from server, this is the client contact
BEGIN:VCARD
VERSION:3.0
PRODID:-//Synthesis AG//NONSGML SyncML Engine V3.4.0.41//EN
REV:20100328T103410Z
N:gupta;sachin;;;
FN:chin
X-EVOLUTION-FILE-AS:
X-GENDER:
NICKNAME:
TITLE:foo
ORG:gmail;;;
ROLE:
TEL;TYPE=HOME,VOICE:9
TEL;TYPE=HOME:6
TEL;TYPE=HOME:7
TEL:1
TEL;TYPE=WORK,VOICE:8
EMAIL;TYPE=INTERNET:a@a.com
URL:
X-MOZILLA-HTML:
ADR:;;;;;;
BDAY:
NOTE:
PHOTO:
END:VCARD
I am not sure why the client TEL details are coming this way.
TEL;TYPE=HOME,VOICE:9
TEL;TYPE=HOME:6
TEL;TYPE=HOME:7
TEL:1
TEL;TYPE=WORK,VOICE:8
I was expecting that the client should have had only the HOME and WORK number.
Is my expectation wrong?
Regards
Sachin
On Thu, Dec 5, 2013 at 6:40 PM, Patrick Ohly <patrick.ohly(a)intel.com> wrote:
On Thu, 2013-12-05 at 06:37 -0600, Sachin Gupta wrote:
> Hello Patrick,
>
> How can i add new fields and property for the syncevo client?
Are you using the SyncEvolution file storage?
It uses the same field list and profile as EDS. In other words, you can
add new fields and a certain mapping to vCard and the file backend will
use them.
See src/syncevo/configs/datatypes.
> for e.g., i need to specify the property MaxOccur and MaxSize for some
> of the fields. If is add these tags like<MaxOccur>1</MaxOccur>, client
> gives errors:
> invalid tag <MaxSize> at line 712 col 8
> invalid tag <MaxOccur>1</MaxOccur>
You seem to be editing 01vcard-profile.xml. This file does not use CtCap
elements, so you cannot add MaxOccur or MaxSize there. Have a look at
SySync_config_reference.pdf for an explanation.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.