{"action":"closed","issue":{"url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/277","labels_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/277/comments","events_url":"https://api.github.com/repos/untitaker/vdirsyncer/issues/277/events","html_url":"https://github.com/untitaker/vdirsyncer/issues/277","id":109268478,"number":277,"title":"vdirsyncer breaks on syncing weird Outlook fields in vcf files","user":{"login":"dvzrv","id":432519,"avatar_url":"https://avatars.githubusercontent.com/u/432519?v=3","gravatar_id":"","url":"https://api.github.com/users/dvzrv","html_url":"https://github.com/dvzrv","followers_url":"https://api.github.com/users/dvzrv/followers","following_url":"https://api.github.com/users/dvzrv/following{/other_user}","gists_url":"https://api.github.com/users/dvzrv/gists{/gist_id}","starred_url":"https://api.github.com/users/dvzrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvzrv/subscriptions","organizations_url":"https://api.github.com/users/dvzrv/orgs","repos_url":"https://api.github.com/users/dvzrv/repos","events_url":"https://api.github.com/users/dvzrv/events{/privacy}","received_events_url":"https://api.github.com/users/dvzrv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/untitaker/vdirsyncer/labels/3rd%20party","name":"3rd party","color":"d4c5f9"},{"url":"https://api.github.com/repos/untitaker/vdirsyncer/labels/storage:%20DAV","name":"storage: DAV","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-01T09:59:47Z","updated_at":"2015-12-17T03:50:57Z","closed_at":"2015-12-17T03:50:57Z","body":"Hey there, this is me running Arch Linux, Python 3.4.3, vdirsyncer 0.6.0.\r\n\r\nI (unfortunately) have some Outlook clients in my network, synchronizing with the OwnCloud we use. Those have the nice behavior of manipulating each vcard they sync with and adding their weird M$ fields (that most likely only Outlook understands).\r\nMost clients sync just fine with this (probably ignoring the fields when reading the vcard).\r\nVdirsyncer however breaks/ doesn't sync properly when there are vcards with the following fields:\r\n\r\n    X-MS-OL-DESIGN:<card xmlns=\"http://schemas.microsoft.com/office/outlook/12/\r\n    electronicbusinesscards\" ver=\"1.0\" layout=\"left\" bgcolor=\"ffffff\"><img xml\r\n    ns=\"\" align=\"tleft\" area=\"32\" use=\"photo\"/><fld xmlns=\"\" prop=\"name\" align\r\n    =\"left\" dir=\"ltr\" style=\"b\" color=\"000000\" size=\"10\"/><fld xmlns=\"\" prop=\"\r\n    org\" align=\"left\" dir=\"ltr\" color=\"000000\" size=\"8\"/><fld xmlns=\"\" prop=\"b\r\n    lank\" size=\"8\"/><fld xmlns=\"\" prop=\"telwork\" align=\"left\" dir=\"ltr\" color=\r\n    \"000000\" size=\"8\"><label align=\"right\" color=\"626262\">Geschäftlich</label\r\n    ></fld><fld xmlns=\"\" prop=\"email\" align=\"left\" dir=\"ltr\" color=\"000000\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/><fld xmlns=\"\" prop=\"blank\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/><fld xmlns=\"\" prop=\"blank\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/><fld xmlns=\"\" prop=\"blank\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/><fld xmlns=\"\" prop=\"blank\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/><fld xmlns=\"\" prop=\"blank\" si\r\n    ze=\"8\"/><fld xmlns=\"\" prop=\"blank\" size=\"8\"/></card>\r\n    X-MS-OL-DEFAULT-POSTAL-ADDRESS:0\r\n\r\nIs there a way for vdirsyncer to also ignore those fields? I know they are useless bloaty M$ XML blah, but it breaks functionality :/\r\n\r\nThis is the normal output. If you need debug output, let me know!\r\n\r\n    warning: Skipping '/.cloudy/remote.php/carddav/addressbooks/7e446f3d-c45d-4dd0-bd89-4f28356a3f1a/team/', etag property is missing.\r\n    warning: Server sent unsolicited item: /.cloudy/remote.php/carddav/addressbooks/7e446f3d-c45d-4dd0-bd89-4f28356a3f1a/team/\r\n    Unhandled exception occured for akt_contacts/team.\r\n    Traceback (most recent call last):\r\n     File \"/usr/lib/python3.4/site-packages/vdirsyncer/cli/tasks.py\", line 65, in sync_collection\r\n      force_delete=force_delete\r\n    File \"/usr/lib/python3.4/site-packages/vdirsyncer/sync.py\", line 163, in sync\r\n      b_info.prepare_idents(storage_a.read_only)\r\n    File \"/usr/lib/python3.4/site-packages/vdirsyncer/sync.py\", line 111, in prepare_idents\r\n      if prefetch else ()):\r\n    File \"/usr/lib/python3.4/site-packages/vdirsyncer/storage/dav.py\", line 452, in get_multi\r\n      raise exceptions.NotFoundError(href)\r\n    vdirsyncer.exceptions.NotFoundError: /.cloudy/remote.php/carddav/addressbooks/7e446f3d-c45d-4dd0-bd89-4f28356a3f1a/team/ebf32dc0-d6e1-4abc-abb2-14cb9f92f2c7@www.myserver.com.vcf\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27083579-vdirsyncer-breaks-on-syncing-weird-outlook-fields-in-vcf-files?utm_campaign=plugin&utm_content=tracker%2F574345&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F574345&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}