Browse Source

Patch contained in "[ Bug #128309 ] m$ exchange bug workaround". Exchange was
erroniously reporting an error. This patch ignores it.

mattphillips 24 years ago
parent
commit
efcd749e41
1 changed files with 10 additions and 7 deletions
  1. 10 7
      functions/imap_general.php

+ 10 - 7
functions/imap_general.php

@@ -30,13 +30,16 @@
 
       if ($handle_errors == true) {
          if ($response == "NO") {
-            set_up_language($squirrelmail_language);
-            echo "<br><b><font color=$color[2]>\n";
-            echo _("ERROR : Could not complete request.");
-            echo "</b><br>\n";
-            echo _("Reason Given: ");
-            echo $message . "</font><br>\n";
-            exit;
+            // ignore this error from m$ exchange, it is not fatal (aka bug)
+            if (!ereg("command resulted in",$message)) { 
+               set_up_language($squirrelmail_language);
+               echo "<br><b><font color=$color[2]>\n";
+               echo _("ERROR : Could not complete request.");
+               echo "</b><br>\n";
+               echo _("Reason Given: ");
+               echo $message . "</font><br>\n";
+               exit;
+            }
          } else if ($response == "BAD") {
             set_up_language($squirrelmail_language);
             echo "<br><b><font color=$color[2]>\n";