Changeset 3808 in subversion
- Timestamp:
- Jul 8, 2010 3:10:29 AM (3 years ago)
- Location:
- trunk/plugins/managesieve
- Files:
-
- 4 edited
-
Changelog (modified) (1 diff)
-
config.inc.php.dist (modified) (2 diffs)
-
lib/rcube_sieve.php (modified) (1 diff)
-
managesieve.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/managesieve/Changelog
r3805 r3808 1 * version 2.8 [2010-07-08] 2 ----------------------------------------------------------- 3 - Added managesieve_auth_type option (#1486731) 4 1 5 * version 2.7 [2010-07-06] 2 6 ----------------------------------------------------------- -
trunk/plugins/managesieve/config.inc.php.dist
r3703 r3808 11 11 // For example %n = mail.domain.tld, %d = domain.tld 12 12 $rcmail_config['managesieve_host'] = 'localhost'; 13 14 // authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL 15 // or none. Optional, defaults to best method supported by server. 16 $rcmail_config['managesieve_auth_type'] = null; 13 17 14 18 // use or not TLS for managesieve server connection … … 40 44 41 45 ?> 42 -
trunk/plugins/managesieve/lib/rcube_sieve.php
r3805 r3808 37 37 * Object constructor 38 38 * 39 * @param string Username (to managesieve login) 40 * @param string Password (to managesieve login) 41 * @param string Managesieve server hostname/address 42 * @param string Managesieve server port number 43 * @param string Enable/disable TLS use 44 * @param array Disabled extensions 39 * @param string Username (for managesieve login) 40 * @param string Password (for managesieve login) 41 * @param string Managesieve server hostname/address 42 * @param string Managesieve server port number 43 * @param string Managesieve authentication method 44 * @param boolean Enable/disable TLS use 45 * @param array Disabled extensions 46 * @param boolean Enable/disable debugging 45 47 */ 46 48 public function __construct($username, $password='', $host='localhost', $port=2000, 47 $usetls=true, $disabled=array(), $debug=false)49 $auth_type=null, $usetls=true, $disabled=array(), $debug=false) 48 50 { 49 51 $this->sieve = new Net_Sieve(); 50 52 51 if ($debug) 53 if ($debug) { 52 54 $this->sieve->setDebug(true, array($this, 'debug_handler')); 53 54 if (PEAR::isError($this->sieve->connect($host, $port, NULL, $usetls))) 55 } 56 if (PEAR::isError($this->sieve->connect($host, $port, NULL, $usetls))) { 55 57 return $this->_set_error(SIEVE_ERROR_CONNECTION); 56 57 if (PEAR::isError($this->sieve->login($username, $password))) 58 } 59 if (PEAR::isError($this->sieve->login($username, $password, 60 $auth_type ? strtoupper($auth_type) : null)) 61 ) { 58 62 return $this->_set_error(SIEVE_ERROR_LOGIN); 59 63 } 60 64 $this->disabled = $disabled; 61 65 } -
trunk/plugins/managesieve/managesieve.php
r3805 r3808 8 8 * with server using managesieve protocol. Adds Filters tab in Settings. 9 9 * 10 * @version 2. 610 * @version 2.8 11 11 * @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl> 12 12 * … … 69 69 $this->sieve = new rcube_sieve($_SESSION['username'], 70 70 $this->rc->decrypt($_SESSION['password']), $host, $port, 71 $this->rc->config->get('managesieve_auth_type'), 71 72 $this->rc->config->get('managesieve_usetls', false), 72 73 $this->rc->config->get('managesieve_disabled_extensions'), … … 1091 1092 } 1092 1093 } 1093 1094 ?>
Note: See TracChangeset
for help on using the changeset viewer.
