| | |
| | | case rcube_sieve::ERROR_CONNECTION: |
| | | case rcube_sieve::ERROR_LOGIN: |
| | | $this->rc->output->show_message('managesieve.filterconnerror', 'error'); |
| | | rcube::raise_error(array('code' => 403, 'type' => 'php', |
| | | 'file' => __FILE__, 'line' => __LINE__, |
| | | 'message' => "Unable to connect to managesieve on $host:$port"), true, false); |
| | | break; |
| | | |
| | | default: |
| | |
| | | $plugin['socket_options'] |
| | | ); |
| | | |
| | | return $this->sieve->error(); |
| | | $error = $this->sieve->error(); |
| | | |
| | | if ($error) { |
| | | rcube::raise_error(array( |
| | | 'code' => 403, |
| | | 'file' => __FILE__, |
| | | 'line' => __LINE__, |
| | | 'message' => "Unable to connect to managesieve on $host:$port" |
| | | ), true, false); |
| | | } |
| | | |
| | | return $error; |
| | | } |
| | | |
| | | /** |
| | |
| | | $this->error_class($id, 'action', 'addresses', 'action_addresses'), 30); |
| | | $out .= '<br /><span class="label">' . rcube::Q($this->plugin->gettext($vsec ? 'vacationinterval' : 'vacationdays')) . '</span><br />' |
| | | .'<input type="text" name="_action_interval['.$id.']" id="action_interval'.$id.'" ' |
| | | .'value="' .rcube::Q(isset($action['seconds']) ? $action['seconds'] : $action['days'], 'strict', false) . '" size="2" ' |
| | | .'value="' .rcube::Q(rcube_sieve_vacation::vacation_interval($action), 'strict', false) . '" size="2" ' |
| | | . $this->error_class($id, 'action', 'interval', 'action_interval') .' />'; |
| | | if ($vsec) { |
| | | $out .= ' <label><input type="radio" name="_action_interval_type['.$id.']" value="days"' |