diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-31 17:24:24 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-31 17:24:24 +0000 |
| commit | 9b9f27ef495394af95f9e6447e5b41fc40affd39 (patch) | |
| tree | cba05ebe9f586c6bab9787222f641714394adc87 /plugins/managesieve/lib/Net | |
| parent | 1c411878766ea6b29947c7eab05a171cf4809a7d (diff) | |
- Fixed handling of REFERRAL responses (http://pear.php.net/bugs/bug.php?id=17107)
git-svn-id: https://svn.roundcube.net/trunk@4821 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/managesieve/lib/Net')
| -rw-r--r-- | plugins/managesieve/lib/Net/Sieve.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/managesieve/lib/Net/Sieve.php b/plugins/managesieve/lib/Net/Sieve.php index 0f6a5f67a..a8e36d8d7 100644 --- a/plugins/managesieve/lib/Net/Sieve.php +++ b/plugins/managesieve/lib/Net/Sieve.php @@ -296,6 +296,13 @@ class Net_Sieve */ function connect($host, $port, $options = null, $useTLS = true) { + $this->_data['host'] = $host; + $this->_data['port'] = $port; + $this->_useTLS = $useTLS; + if (!empty($options) && is_array($options)) { + $this->_options = array_merge($this->_options, $options); + } + if (NET_SIEVE_STATE_DISCONNECTED != $this->_state) { return PEAR::raiseError('Not currently in DISCONNECTED state', 1); } @@ -359,6 +366,12 @@ class Net_Sieve */ function login($user, $pass, $logintype = null, $euser = '', $bypassAuth = false) { + $this->_data['user'] = $user; + $this->_data['pass'] = $pass; + $this->_data['logintype'] = $logintype; + $this->_data['euser'] = $euser; + $this->_bypassAuth = $bypassAuth; + if (NET_SIEVE_STATE_AUTHORISATION != $this->_state) { return PEAR::raiseError('Not currently in AUTHORISATION state', 1); } |
