From 31ecc4ff639140f8b8db15063cc6aed490557eed Mon Sep 17 00:00:00 2001
From: till <till@php.net>
Date: Fri, 01 Feb 2008 21:23:01 -0500
Subject: [PATCH] * added @todo * fixed more cs (in switch())

---
 program/lib/imap.inc |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index fa2fe2a..e21bfd5 100644
--- a/program/lib/imap.inc
+++ b/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 @@
 					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;

--
Gitblit v1.9.1