Bump managesieve version number, cs improvements

pull/6302/head
Aleksander Machniak 6 years ago
parent b497908040
commit 53fe9d7048

@ -37,6 +37,7 @@ CHANGELOG Roundcube Webmail
- Managesieve: Support filter action with custom IMAP flags (#6011)
- Managesieve: Support 'mime' extension tests - RFC5703 (#5832)
- Managesieve: Support GSSAPI authentication with krb_authentication plugin (#5779)
- Managesieve: Support enabling the plugin for specified hosts only (#6292)
- Password: Support host variables in password_db_dsn option (#5955)
- Password: Automatic virtualmin domain setting, removed password_virtualmin_format option (#5759)
- Password: Added password_username_format option (#5766)

@ -1,8 +1,11 @@
* version 9.1 [2018-05-19]
-----------------------------------------------------------
- Added GSSAPI support (#5779)
- Added option managesieve_default_headers
- Added option managesieve_forward to enable settings dialog for simple forwarding (#6021)
- Support filter action with custom IMAP flags (#6011)
- Support 'mime' extension tests - RFC5703 (#5832)
- Support enabling the plugin for specified hosts only (#6292)
- Support Elastic skin
- Fix bug where text: syntax was forced for strings longer than 1024 characters (#6143)
- Fix missing Save button in Edit Filter Set page of Classic skin (#6154)

@ -119,12 +119,11 @@ $config['managesieve_raw_editor'] = true;
// Disabled actions
// Prevent user from performing specific actions:
// list_sets, enable_disable_set, delete_set, new_set, download_set, new_rule, delete_rule
// Note: disabling list_sets removes the Filter sets widget from the UI and means the set defined in managesieve_script_name will always be used (and activated)
// Note: disabling list_sets removes the Filter sets widget from the UI and means
// the set defined in managesieve_script_name will always be used (and activated)
$config['managesieve_disabled_actions'] = array();
// Allowed hosts
// Only activate managesieve for selected hosts
// If this is not set, existing behaviour is maintained.
// If set, managesieve will work only for hosts contained in the managesieve_allowed_hosts array
// $config['managesieve_allowed_hosts'] = array('host1.mydomain.com','host2.mydomain.com');
// List of hosts that support managesieve.
// Activate managesieve for selected hosts only. If this is not set all hosts are allowed.
// Example: $config['managesieve_allowed_hosts'] = array('host1.mydomain.com','host2.mydomain.com');
$config['managesieve_allowed_hosts'] = null;

@ -60,7 +60,7 @@ class rcube_sieve_engine
);
private $disabled_actions;
const VERSION = '9.0';
const VERSION = '9.1';
const PROGNAME = 'Roundcube (Managesieve)';
const PORT = 4190;

@ -101,15 +101,14 @@ class managesieve extends rcube_plugin
function settings_actions($args)
{
$this->load_config();
if( $this->rc->config->get('managesieve_allowed_hosts') !== null &&
! in_array( $this->rc->user->data['mail_host'],
$this->rc->config->get('managesieve_allowed_hosts') ) ){
return;
}
$allowed_hosts = $this->rc->config->get('managesieve_allowed_hosts');
$vacation_mode = (int) $this->rc->config->get('managesieve_vacation');
$forward_mode = (int) $this->rc->config->get('managesieve_forward');
$forward_mode = (int) $this->rc->config->get('managesieve_forward');
if (!empty($allowed_hosts) && !in_array($_SESSION['storage_host'], (array) $allowed_hosts)) {
return;
}
// register Filters action
if ($vacation_mode != 2 && $forward_mode != 2) {

Loading…
Cancel
Save