From 5f5ca396ba0b2be781530116affb0546dbd8a1a4 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Jun 2009 09:18:21 +0000 Subject: [PATCH] Added fallback to PLAIN in sieve connect mechanism. 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 | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.30.2