]> git.donarmstrong.com Git - roundcube.git/blobdiff - plugins/managesieve/lib/Net/Sieve.php
Imported Upstream version 0.6+dfsg
[roundcube.git] / plugins / managesieve / lib / Net / Sieve.php
index 0f6a5f67ad65bc18bceff1a2e6a0fccf71989cc6..a8e36d8d71b03dee1e54a289e8b624b303a72642 100644 (file)
@@ -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);
         }