tbsmcd/select_pagesize

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type: roundcube-plugin

1.0.0 2019-05-21 03:59 UTC

README

Screen shot

You can change <input> of pagesize to <select> with this plugin.

Description

In Roundcube, pagesize can be set to any value. If the user sets an extremely large value, the mail server may be heavily loaded. In order to solve this problem, it is necessary to limit the values ​​that can be set.
Using this plugin, you can not only change <input> to <select>, but also limit on the server side so that only the value set in config.inc.php can be posted.

Set up

All you have to do is composer install this repo and edit config.inc.php.

$config['plugins'] = ['archive', 'zipdownload', 'select_pagesize'];

// Add array of option values. Values are int.
$config['pagesize_options'] = [10, 20, 50];

License

MIT