black75 / autoclean
Folder configuration parameter. Automatic folder cleaning from old e-mails. Requires external doveadm.
Requires
- php: >=7.4
This package is not auto-updated.
Last update: 2025-07-04 21:45:40 UTC
README
Autoclean is a Roundcube plugin, that allows the user to configure automatic cleaning of old messages from folders.
Screenshot
Requirements
- Roundcube
- dovecot - server IMAP
- permissions to run doveadm
- access to cron
Installation
Please follow these steps and adapt them to your distribution if necessary
- Place this plugin folder into plugins directory of Roundcube
- You can do so either by using
composer
, for which there iscomposer.json
, still you need to follow further installation steps, since those could not be accomplished withcomposer
- After that you need to enable newly installed plugin by adding it
to Roundcube plugin list. For Debian the related config file is
_ROUNDCUBE_FOLDER_/config/config.inc.php
and relevant setting are$rcmail_config ['plugins'] = array();
Appending
, 'autoclean'
to the list of plugins will suffice. - You can use crontab to autoclean folders users periodically.
Just specify an entry like:
0 1 * * * _user_ _ROUNDCUBE_FOLDER_/plugins/autoclean/autoclean.sh
_user_
must have permission to rundoveadm
Settings
In case you need to edit the default settings, you may copy config.inc.php.dist
to config.inc.php
and edit setings as desired in the latter file, which will override defaults.
$config['autoclean_interval']
Day interval array$config['autoclean_trash_folder']
System folder Trash - default: Trash$config['autoclean_dovecot_server']
(eg. IP address) A real server running dovecot. Access to the dovadm application is required. The connection is made using ssh. If dovecot is on the same server as roundcube, set the parameter to null.$config['autoclean_extra_clean']
Additional mandatory folders set by the administrator, performed for ALL users
License
This software distributed under the terms of the GNU General Public License as published by the Free Software Foundation
Further details on the GPL license can be found at http://www.gnu.org/licenses/gpl.html
By contributing to Autoclean plugin, authors release their contributed work under this license
Author
Wojciech Bielec, Poland