next up previous contents
Next: Managesieve Plugin Up: Roundcube Webmail Previous: 顯示調整   Contents

啟動 Plugins

  1. 將要啟動的插件,加到 $config['plugins'] 陣列中,若要移除則將其從陣到中刪除。
    [root@mail plugins]# tail -5 /etc/roundcubemail/config.inc.php
    $config['plugins'] = array('pop3fetcher',
    			'newmail_notifier',
    			'userinfo','password'
    );
    
  2. 加入的插件必須存在於 /usr/share/roundcubemail/plugins 目錄,例如 userinfo 插件,userinfo 目錄存在於 /usr/share/roundcubemail/plugins 下,且其目錄有 userinfo.php 檔,檔案內有 class userinfo。
    [root@mail plugins]# pwd
    /usr/share/roundcubemail/plugins
    [root@mail plugins]# ls userinfo/userinfo.php 
    userinfo/userinfo.php
    [root@mail plugins]# grep userinfo userinfo/userinfo.php
    class userinfo extends rcube_plugin
            $this->add_texts('localization/', array('userinfo'));
            $this->register_action('plugin.userinfo', array($this, 'infostep'));
            $this->include_script('userinfo.js');
    



2018-03-16