Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/libkolab.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | public function init() | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Hook into IMAP FETCH HEADER.FIELDS command and request Kolab-specific headers | * Hook into IMAP FETCH HEADER.FIELDS command and request Kolab-specific headers | ||||
*/ | */ | ||||
function storage_init($p) | function storage_init($p) | ||||
{ | { | ||||
$p['fetch_headers'] = trim($p['fetch_headers'] .' X-KOLAB-TYPE X-KOLAB-MIME-VERSION MESSAGE-ID'); | $kolab_headers = 'X-KOLAB-TYPE X-KOLAB-MIME-VERSION MESSAGE-ID'; | ||||
if (!empty($p['fetch_headers'])) { | |||||
$p['fetch_headers'] .= ' ' . $kolab_headers; | |||||
} | |||||
else { | |||||
$p['fetch_headers'] = $kolab_headers; | |||||
} | |||||
return $p; | return $p; | ||||
} | } | ||||
/** | /** | ||||
* Hook into IMAP connection to replace client identity | * Hook into IMAP connection to replace client identity | ||||
*/ | */ | ||||
function storage_connect($p) | function storage_connect($p) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |