public function propFindLate(DAV\PropFind $propFind, DAV\INode $node)
    {
        // If the request was made using the SOGO connector, we must rewrite
        // the content-type property. By default SabreDAV will send back
        // text/x-vcard; charset=utf-8, but for SOGO we must strip that last
        // part.
        if (false === strpos((string) $this->server->httpRequest->getHeader('User-Agent'), 'Thunderbird')) {
            return;
        }
        $contentType = $propFind->get('{DAV:}getcontenttype');
        list($part) = explode(';', $contentType);
        if ('text/x-vcard' === $part || 'text/vcard' === $part) {
            $propFind->set('{DAV:}getcontenttype', 'text/x-vcard');
        }
    }
public function propFindLate(DAV\PropFind $propFind, DAV\INode $node)
    {
        // If the request was made using the SOGO connector, we must rewrite
        // the content-type property. By default SabreDAV will send back
        // text/x-vcard; charset=utf-8, but for SOGO we must strip that last
        // part.
        if (false === strpos((string) $this->server->httpRequest->getHeader('User-Agent'), 'Thunderbird')) {
            return;
        }
        $contentType = $propFind->get('{DAV:}getcontenttype');
        list($part) = explode(';', $contentType);
        if ('text/x-vcard' === $part || 'text/vcard' === $part) {
            $propFind->set('{DAV:}getcontenttype', 'text/x-vcard');
        }
    }
public function propFindLate ( DAV \ PropFind $ propFind , DAV \ INode $ node ) { // If the request was made using the SOGO connector, we must rewrite // the content-type property. By default SabreDAV will send back // text/x-vcard; charset=utf-8, but for SOGO we must strip that last // part. if ( false === strpos ( ( string ) $ this -> server -> httpRequest -> getHeader ( 'User-Agent' ) , 'Thunderbird' ) ) { return ; } $ contentType = $ propFind -> get ( '{DAV:}getcontenttype' ) ; list ( $ part ) = explode ( ';' , $ contentType ) ; if ( 'text/x-vcard' === $ part || 'text/vcard' === $ part ) { $ propFind -> set ( '{DAV:}getcontenttype' , 'text/x-vcard' ) ; } }
This event is triggered when fetching properties.

This event is scheduled late in the process, after most work for
propfind has been done.

@param DAV\PropFind $propFind
@param DAV\INode    $node
This event is triggered when fetching properties .