* added @todo

* fixed more cs (in switch())
release-0.6
till 17 years ago
parent 611a6a71d3
commit 31ecc4ff63

@ -53,6 +53,11 @@
********************************************************/ ********************************************************/
/**
* @todo Possibly clean up more CS.
* @todo Split this file into smaller files.
* @todo Refactor code.
*/
// changed path to work within roundcube webmail // changed path to work within roundcube webmail
include_once("lib/icl_commons.inc"); include_once("lib/icl_commons.inc");
@ -1570,23 +1575,24 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false) {
case 'content-type': case 'content-type':
$ctype_parts = explode(";", $string); $ctype_parts = explode(";", $string);
$result[$id]->ctype = array_shift($ctype_parts); $result[$id]->ctype = array_shift($ctype_parts);
foreach ($ctype_parts as $ctype_add) foreach ($ctype_parts as $ctype_add) {
if (preg_match('/charset="?([a-z0-9\-\.\_]+)"?/i', if (preg_match('/charset="?([a-z0-9\-\.\_]+)"?/i',
$ctype_add, $regs)) { $ctype_add, $regs)) {
$result[$id]->charset = $regs[1]; $result[$id]->charset = $regs[1];
} }
break; }
break;
case 'in-reply-to': case 'in-reply-to':
$result[$id]->in_reply_to = ereg_replace("[\n<>]", '', $string); $result[$id]->in_reply_to = ereg_replace("[\n<>]", '', $string);
break; break;
case 'references': case 'references':
$result[$id]->references = $string; $result[$id]->references = $string;
break; break;
case 'return-receipt-to': case 'return-receipt-to':
case 'disposition-notification-to': case 'disposition-notification-to':
case 'x-confirm-reading-to': case 'x-confirm-reading-to':
$result[$id]->mdn_to = str_replace("\n", " ", $string); $result[$id]->mdn_to = str_replace("\n", " ", $string);
break; break;
case 'message-id': case 'message-id':
$result[$id]->messageID = $string; $result[$id]->messageID = $string;
break; break;

Loading…
Cancel
Save