Changeset 5239 in subversion


Ignore:
Timestamp:
Sep 19, 2011 8:18:25 AM (20 months ago)
Author:
alec
Message:
  • Added managesieve_connect hook for plugins
Location:
trunk/plugins/managesieve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/managesieve/Changelog

    r5215 r5239  
    55- Fixed PHP warning on connection error when submitting filter form 
    66- Fixed bug where new action row with flags wasn't handled properly 
     7- Added managesieve_connect hook for plugins 
    78 
    89* version 4.3 [2011-07-28] 
  • trunk/plugins/managesieve/managesieve.php

    r5215 r5239  
    171171        $host = rcube_idn_to_ascii($host); 
    172172 
     173        $plugin = $this->rc->plugins->exec_hook('managesieve_connect', array( 
     174            'user'      => $_SESSION['username'], 
     175            'password'  => $this->rc->decrypt($_SESSION['password']), 
     176            'host'      => $host, 
     177            'port'      => $port, 
     178            'auth_type' => $this->rc->config->get('managesieve_auth_type'), 
     179            'usetls'    => $this->rc->config->get('managesieve_usetls', false), 
     180            'disabled'  => $this->rc->config->get('managesieve_disabled_extensions'), 
     181            'debug'     => $this->rc->config->get('managesieve_debug', false), 
     182            'auth_cid'  => $this->rc->config->get('managesieve_auth_cid'), 
     183            'auth_pw'   => $this->rc->config->get('managesieve_auth_pw'), 
     184        )); 
     185 
    173186        // try to connect to managesieve server and to fetch the script 
    174         $this->sieve = new rcube_sieve($_SESSION['username'], 
    175             $this->rc->decrypt($_SESSION['password']), $host, $port, 
    176             $this->rc->config->get('managesieve_auth_type'), 
    177             $this->rc->config->get('managesieve_usetls', false), 
    178             $this->rc->config->get('managesieve_disabled_extensions'), 
    179             $this->rc->config->get('managesieve_debug', false), 
    180             $this->rc->config->get('managesieve_auth_cid'),  
    181             $this->rc->config->get('managesieve_auth_pw') 
     187        $this->sieve = new rcube_sieve( 
     188            $plugin['user'], 
     189            $plugin['password'], 
     190            $plugin['host'], 
     191            $plugin['port'], 
     192            $plugin['auth_type'], 
     193            $plugin['usetls'], 
     194            $plugin['disabled'], 
     195            $plugin['debug'], 
     196            $plugin['auth_cid'], 
     197            $plugin['auth_pw'] 
    182198        ); 
    183199 
Note: See TracChangeset for help on using the changeset viewer.