roundcubemail/plugins/managesieve/managesieve.php
function managesieve_actions()
    {
        $uids = rcmail::get_uids(null, null, $multifolder, rcube_utils::INPUT_POST);

        // handle fetching email headers for the new filter form
        if (!empty($uids)) {
            $mailbox = key($uids);
            $message = new rcube_message($uids[$mailbox][0], $mailbox);
            $headers = $this->parse_headers($message->headers);

            $this->rc->output->set_env('sieve_headers', $headers);
            $this->rc->output->command('managesieve_create', true);
            $this->rc->output->send();
        }

        // handle other actions
        $engine_type = $this->rc->action == 'plugin.managesieve-vacation' ? 'vacation' : '';
        $engine      = $this->get_engine($engine_type);

        $this->init_ui();
        $engine->actions();
    }
function managesieve_actions()
    {
        $uids = rcmail::get_uids(null, null, $multifolder, rcube_utils::INPUT_POST);

        // handle fetching email headers for the new filter form
        if (!empty($uids)) {
            $mailbox = key($uids);
            $message = new rcube_message($uids[$mailbox][0], $mailbox);
            $headers = $this->parse_headers($message->headers);

            $this->rc->output->set_env('sieve_headers', $headers);
            $this->rc->output->command('managesieve_create', true);
            $this->rc->output->send();
        }

        // handle other actions
        $engine_type = $this->rc->action == 'plugin.managesieve-vacation' ? 'vacation' : '';
        $engine      = $this->get_engine($engine_type);

        $this->init_ui();
        $engine->actions();
    }
function managesieve_actions ( ) { $ uids = rcmail :: get_uids ( null , null , $ multifolder , rcube_utils :: INPUT_POST ) ; // handle fetching email headers for the new filter form if ( ! empty ( $ uids ) ) { $ mailbox = key ( $ uids ) ; $ message = new rcube_message ( $ uids [ $ mailbox ] [ 0 ] , $ mailbox ) ; $ headers = $ this -> parse_headers ( $ message -> headers ) ; $ this -> rc -> output -> set_env ( 'sieve_headers' , $ headers ) ; $ this -> rc -> output -> command ( 'managesieve_create' , true ) ; $ this -> rc -> output -> send ( ) ; } // handle other actions $ engine_type = $ this -> rc -> action == 'plugin.managesieve-vacation' ? 'vacation' : '' ; $ engine = $ this -> get_engine ( $ engine_type ) ; $ this -> init_ui ( ) ; $ engine -> actions ( ) ; }
Plugin action handler
Plugin action handler