? IMAP/.svn
Index: IMAP/cclient.php
===================================================================
RCS file: /repository/framework/Kolab/Kolab/IMAP/cclient.php,v
retrieving revision 1.1
diff -u -B -r1.1 cclient.php
--- IMAP/cclient.php	22 Mar 2007 03:40:57 -0000	1.1
+++ IMAP/cclient.php	22 Mar 2007 10:16:15 -0000
@@ -197,8 +197,9 @@
     function getMessageHeader($uid, $peek_for_body = true)
     {
         $flags = FT_UID;
-        if ($peek_for_body)
+        if ($peek_for_body) {
             $flags |= FT_PREFETCHTEXT;
+        }
 
         $result = @imap_fetchheader($this->_imap, $uid, $flags);
         if (!$result) {
@@ -260,11 +261,11 @@
             return PEAR::raiseError(sprintf(_("Horde/Kolab/IMAP: Failed listing folders in %s. Error was %s"), $this->_base_mbox, @imap_last_error()));
         }
 
-    $folders = array();
-    $server_len = strlen($this->_base_mbox);
-    foreach ($result as $folder) {
+        $folders = array();
+        $server_len = strlen($this->_base_mbox);
+        foreach ($result as $folder) {
             if (substr($folder, 0, $server_len) == $this->_base_mbox) {
-            $folders[] = substr($folder, $server_len);
+                $folders[] = substr($folder, $server_len);
             }
         }
         return $folders;
Index: IMAP/pear.php
===================================================================
RCS file: /repository/framework/Kolab/Kolab/IMAP/pear.php,v
retrieving revision 1.1
diff -u -B -r1.1 pear.php
--- IMAP/pear.php	22 Mar 2007 03:40:57 -0000	1.1
+++ IMAP/pear.php	22 Mar 2007 10:16:15 -0000
@@ -148,13 +148,13 @@
     function getMessageHeader($uid, $peek_for_body = true)
     {
         $ret = $this->_imap->cmdUidFetch($uid, "BODY[HEADER]");
-    if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
+        if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK") {
             return PEAR::raiseError(sprintf(_("Horde/Kolab/IMAP: Failed fetching headers of message %s. Error was %s"), $uid,
                                             $ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]));
         }
-    if(isset($ret["PARSED"])){
-        foreach($ret["PARSED"] as $msg){
-                if(isset($msg["EXT"]["BODY[HEADER]"]["CONTENT"])){
+        if(isset($ret["PARSED"])) {
+            foreach($ret["PARSED"] as $msg) {
+                if(isset($msg["EXT"]["BODY[HEADER]"]["CONTENT"])) {
                     return $msg["EXT"]["BODY[HEADER]"]["CONTENT"];
                 }
             }
@@ -173,13 +173,13 @@
     function getMessageBody($uid)
     {
         $ret = $this->_imap->cmdUidFetch($uid, "BODY[TEXT]");
-    if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
+        if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK") {
             return PEAR::raiseError(sprintf(_("Horde/Kolab/IMAP: Failed fetching body of message %s. Error was %s"), $uid,
                                             $ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]));
         }
-    if(isset($ret["PARSED"])){
-        foreach($ret["PARSED"] as $msg){
-                if(isset($msg["EXT"]["BODY[TEXT]"]["CONTENT"])){
+        if(isset($ret["PARSED"])) {
+            foreach($ret["PARSED"] as $msg) {
+                if(isset($msg["EXT"]["BODY[TEXT]"]["CONTENT"])) {
                     return $msg["EXT"]["BODY[TEXT]"]["CONTENT"];
                 }
             }
@@ -198,13 +198,13 @@
     function getMessage($uid)
     {
         $ret = $this->_imap->cmdUidFetch($uid, "RFC822");
-        if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
+        if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK") {
             return PEAR::raiseError(sprintf(_("Horde/Kolab/IMAP: Failed fetching message %s. Error was %s"), $uid,
                                             $ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]));
         }
-        if(isset($ret["PARSED"])){
-            foreach($ret["PARSED"] as $msg){
-                if(isset($msg["EXT"]["RFC822"]["CONTENT"])){
+        if(isset($ret["PARSED"])) {
+            foreach($ret["PARSED"] as $msg) {
+                if(isset($msg["EXT"]["RFC822"]["CONTENT"])) {
                     return $msg["EXT"]["RFC822"]["CONTENT"];
                 }
             }