Code

Added fallback to PLAIN in sieve connect mechanism.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Jun 2009 09:18:21 +0000 (09:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Jun 2009 09:18:21 +0000 (09:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13712 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/personal/mail/sieve/class_sieve.inc

index 5594b77491e50b13298dd05a524efb4d00ab9d81..0aae65def1f372d3ca420331dc97c06f7dd4d758 100644 (file)
@@ -384,6 +384,15 @@ class sieve
       }
     }
 
+    /* Sometimes we do not get any authentification methods, assume PLAIN here.
+     * #TODO Maybe there is a better solution for this?
+     */
+    if($this->auth_in_use == ""){
+      @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,$this->error_raw,
+          "<b>SIEVE: No authentification mechanisms received, try using PLAIN!.</b>");
+        $this->auth_in_use  = "PLAIN";
+    }
+
     /* Fill error message if no auth types are present */
     if (!isset($this->capabilities["auth"])){
       $this->error=EC_UNKNOWN;