From: Mark E. <ma...@mp...> - 2012-08-23 10:59:04
|
Hiya In the course of bringing synce back into the fold, I've come across something which seems to be in file-sync. First the background to my process. I've a sync group of evo2-sync and file-sync, to dump my contact list for testing. I then have another group of file-sync and synce to test the synce side with no disruption. The sync process completes, which is good ! Amongst my format problems, I have a number of contacts, only those that contain a mailing address, that end up massively truncated, in fact only containing the address. From a little investigation it looks like a problem with the data coming from file-sync. An example, the attached vcard is the result of the evo->file sync, to feed into the next stage. It's attached rather than inline to preserve the formatting. And the following is what gets fed into the synce plugin. <?xml version="1.0"?> <contact> <Address Location="Home"> <PostOfficeBox/> <ExtendedAddress/> <Street>4 York Road</Street> <Locality>Tonbridge</Locality> <Region>Kent</Region> <PostalCode>TN10 4QR</PostalCode> <Country/> </Address> <AddressLabel Location="Home"> <Content>4 York Road Tonbridge, Kent TN10 4QREMAIL</Content> </AddressLabel> </contact> From the attachment, the LABEL field has been wrapped, quite correctly, due to it's length, but there is no leading space on the continuation line, which I believe is wrong. When it is then read in by the second sync group, it looks likely that a similar wrapping problem results in the breakage in the xml, seen above, and the lack of other fields following LABEL. If I modify the source vcard to include the space, the xml is still broken. I'm trawling through trying to find where all this happens, but hopefully someone more familiar with the code can point it out ? Ta Mark |