Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage_folder.php
Show First 20 Lines • Show All 974 Lines • ▼ Show 20 Lines | // $headers['Message-ID'] = $rcmail->gen_message_id(); | ||||
$temp_dir = unslashify($rcmail->config->get('temp_dir')); | $temp_dir = unslashify($rcmail->config->get('temp_dir')); | ||||
$mime->setParam('delay_file_io', true); | $mime->setParam('delay_file_io', true); | ||||
} | } | ||||
} | } | ||||
$mime->headers($headers); | $mime->headers($headers); | ||||
$mime->setTXTBody("This is a Kolab Groupware object. " | $mime->setTXTBody("This is a Kolab Groupware object. " | ||||
. "To view this object you will need an email client that understands the Kolab Groupware format. " | . "To view this object you will need an email client that understands the Kolab Groupware format. " | ||||
. "For a list of such email clients please visit http://www.kolab.org/\n\n"); | . "For a list of such email clients please visit https://www.kolab.org/\n\n"); | ||||
$ctype = kolab_storage::$version == '2.0' ? $format->CTYPEv2 : $format->CTYPE; | $ctype = kolab_storage::$version == '2.0' ? $format->CTYPEv2 : $format->CTYPE; | ||||
// Convert new lines to \r\n, to wrokaround "NO Message contains bare newlines" | // Convert new lines to \r\n, to wrokaround "NO Message contains bare newlines" | ||||
// when APPENDing from temp file | // when APPENDing from temp file | ||||
$xml = preg_replace('/\r?\n/', "\r\n", $xml); | $xml = preg_replace('/\r?\n/', "\r\n", $xml); | ||||
$mime->addAttachment($xml, // file | $mime->addAttachment($xml, // file | ||||
$ctype, // content-type | $ctype, // content-type | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |