Ticket #572 (closed defect: fixed)
vconvert does not convert xml-format back to vcard
| Reported by: | felixmoeller | Owned by: | prahal |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.40 |
| Component: | Engine | Version: | 0.34 |
| Severity: | normal | Keywords: | |
| Cc: | cstender, dfriedrich |
Description
I just tried to convert a vcard to the xml-format:
# vconvert cell32/card.vcf --to-xmlformat --out card.xml // does work # vconvert card.xml --to-vcard30 // does not work
In line 79 of vconvert.c osync_objformat_get_name(sourceformat) gives "plain". After osync_data_set_objformat(data, sourceformat); it is just "".
A little hack enables me to convert to a vcard: ;) Editting in vconvert.c line 311
OSyncObjFormat *dummyformat = osync_objformat_new("plain", "data", &error);
to:
OSyncObjFormat *dummyformat = osync_objformat_new("xmlformat-contact-doc", "data", &error);
and commenting out in opensync/data/opensync_data.c line 120:
if (data->objformat)
osync_objformat_unref(data->objformat);
btw. vconvert is not in the osbs.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
