Open user678 opened 12 years ago
The 'else // fix here' is not a good enough condition to be consider as a vcard list. The check should :
else if (preg_match('/x-vlist/', $response->propstat->prop->getcontenttype))
However the extension is not the same now ie: '.vlf' So it still won't work but it is a start.
It is possible only to check <card:addressbook /> empty node?
i've fixed it like that: -else if (preg_match('/unix-directory/', $response->propstat->prop->getcontenttype)) +else if ($response->propstat->prop->resourcetype->addressbook->getName()=="addressbook")
and in private function clean_response($response) { $response = utf8_encode($response); $response = str_replace('card:', null, $response); $response = str_replace('D:', null, $response);
Maybe a combination of preg_match and getName would be better?
I implement it in commit https://github.com/xbgmsharp/sogosync/commit/88febac5c886d66f539041a248bf715cfcb0b7a8
Hi,
SOGo catalog list for simplify:
produces this output:
SabreDAV returns list folders in following format:
simplify() returns empty node. You may add the following fix: