summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-02 02:23:01 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-02 02:23:01 +0000
commit8736e7025103f10d77eb2599cb759c07ea63690d (patch)
treeeadc6e2cce99499eef53c96eeb858a8b58788aaf /roundcubemail/program
parente86a6fe0261e179267f121a72ba39d09743ce8cc (diff)
* added @todo
* fixed more cs (in switch()) git-svn-id: https://svn.roundcube.net/trunk@986 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/imap.inc20
1 files changed, 13 insertions, 7 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index fa2fe2a51..e21bfd551 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -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
include_once("lib/icl_commons.inc");
@@ -1570,23 +1575,24 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false) {
case 'content-type':
$ctype_parts = explode(";", $string);
$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',
$ctype_add, $regs)) {
$result[$id]->charset = $regs[1];
}
- break;
+ }
+ break;
case 'in-reply-to':
$result[$id]->in_reply_to = ereg_replace("[\n<>]", '', $string);
break;
case 'references':
$result[$id]->references = $string;
break;
- case 'return-receipt-to':
- case 'disposition-notification-to':
- case 'x-confirm-reading-to':
- $result[$id]->mdn_to = str_replace("\n", " ", $string);
- break;
+ case 'return-receipt-to':
+ case 'disposition-notification-to':
+ case 'x-confirm-reading-to':
+ $result[$id]->mdn_to = str_replace("\n", " ", $string);
+ break;
case 'message-id':
$result[$id]->messageID = $string;
break;