Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: scroom on December 12, 2022, 06:13:14 PM

Title: Disable Managesieve-actions
Post by: scroom on December 12, 2022, 06:13:14 PM
Hello,

We had a case where users created filters to send emails from other user accounts. We would like to prevent this in the future and would therefore like to limit the functionality of the Managesieve plugin and, for example, no longer offer that filters of the type "Send notification" are created.
I have seen that individual actions of the plugin can be deactivated. But I haven't found anything about which functions I can deactivate and how. Can anyone help me?

Thanks in advance!

Scroom
Title: Re: Disable Managesieve-actions
Post by: Dmitry42 on January 15, 2023, 11:22:21 AM
/plugins/managesieve/config.inc.php

// Disabled actions. Prevents user from performing specific actions by disabling
// the UI elements:
// - list_sets,
//   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)
// - enable_disable_set,
// - delete_set,
// - new_set,
// - download_set,
// - new_filter,
// - delete_filter,
// - redirect: This one will remove 'redirect' option from the filter actions selector
//   Note: This will not remove it for redirect actions already existing in the script.
//   Note: This has no impact on the Forwarding UI
$config['managesieve_disabled_actions'] = [];

This ?