From: Michael M Slusarz Date: Fri, 17 Jul 2009 21:43:22 +0000 (-0600) Subject: Clean up test mail server output X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6e4637d63af384b80d2e7ffc4d709cc84b1dca78;p=horde.git Clean up test mail server output --- diff --git a/imp/test.php b/imp/test.php index b6865569b..48a00baa5 100644 --- a/imp/test.php +++ b/imp/test.php @@ -60,7 +60,15 @@ function _doConnectionTest() "
IMAP server capabilities:
";
 
         try {
-            echo htmlspecialchars(print_r($imap_client->capability(), true));
+            foreach ($imap_client->capability() as $key => $val) {
+                if (is_array($val)) {
+                    foreach ($val as $val2) {
+                        echo htmlspecialchars($key) . '=' . htmlspecialchars($val2) . "\n";
+                    }
+                } else {
+                    echo htmlspecialchars($key) . "\n";
+                }
+            }
         } catch (Horde_Imap_Client_Exception $e) {
             _errorMsg($e);
         }
@@ -207,7 +215,7 @@ if (isset($_POST['user']) && isset($_POST['passwd'])) {
 
 
- +
(If blank, attempts to connects to a server running on the same machine as IMP)
(If non-standard port; leave blank to auto-detect using standard ports)