Hello
Please consider this patch, which allow plugins to add SASL mechanisms
--- ./program/include/rcube_smtp.php.orig 2012-12-24 10:06:32.000000000
+0100
+++ ./program/include/rcube_smtp.php 2012-12-24 10:07:34.000000000 +0100
@@ -113,4 +113,19 @@
$this->conn->setDebug(true, array($this, 'debug_handler'));
+
+ // plugin hook to add SASL mechanisms
+ $result = $RCMAIL->plugins->exec_hook('smtp_add_auth', array(
+ 'conn' => $this->conn,
+ ));
+ if (PEAR::isError($result))
+ {
+ $this->response[] = "Authentication setup failed:
".$result->getMessage();
+ $this->error = array('label' => 'smtpconnerror', 'vars' => array('code'
=> $this->conn->_code));
+ $this->conn = null;
+ return false;
+ }
+
+
+
// register authentication methods
if (!empty($CONFIG['smtp_auth_callbacks']) && method_exists($this->conn,
'setAuthMethod')) {
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
[email protected]
_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev