From: hickert Date: Fri, 12 Jun 2009 09:18:21 +0000 (+0000) Subject: Added fallback to PLAIN in sieve connect mechanism. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f5ca396ba0b2be781530116affb0546dbd8a1a4;p=gosa.git Added fallback to PLAIN in sieve connect mechanism. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13712 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc index 5594b7749..0aae65def 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc @@ -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, + "SIEVE: No authentification mechanisms received, try using PLAIN!."); + $this->auth_in_use = "PLAIN"; + } + /* Fill error message if no auth types are present */ if (!isset($this->capabilities["auth"])){ $this->error=EC_UNKNOWN;