显示 Roundcube 配额信息的插件。

资助包维护!
www.paypal.me/jfcherng/5usd

安装次数: 1,622

依赖项: 0

建议者: 0

安全性: 0

星标: 7

关注者: 3

分叉: 4

开放问题: 3

类型:roundcube-plugin

0.0.21 2022-06-07 01:21 UTC

README

GitHub Workflow Status (branch) Packagist Packagist Version Project license GitHub stars Donate to this project using Paypal

一个显示 Roundcube 配额信息的饼图插件。

要求

我只在以下环境中测试了这个插件。其他配置可能也能工作,但需要运气。

  • PHP: >= 5.4.0

什么是配额插件

配额插件用于在 Roundcube 中显示指定邮箱的 已用空间可用空间

demo

如何在 Roundcube 中安装此插件

通过 Composer 安装

此插件已发布到 Packagist,名称为 jfcherng-roundcube/quota

  1. 转到您的 ROUNDCUBE_HOME(即 Roundcube 的根目录)。
  2. 运行 composer require jfcherng-roundcube/quota
  3. 如果您想进行一些配置,可以编辑此插件目录下的 config.inc.php

手动安装

  1. ROUNDCUBE_HOME/plugins 中创建 quota 文件夹(如果不存在)。
  2. 将所有插件文件复制到那里。
  3. config.inc.php.dist 复制到 config.inc.php 并编辑 config.inc.php(如果需要)。
  4. 编辑 ROUNDCUBE_HOME/conf/config.inc.php,找到 $config['plugins'] 并添加 'quota',
<?php

// some other codes...

$config['plugins'] = array(
    // some other plugins...
    'quota', // <-- add this
);

如何在 Dovecot 中设置邮箱配额

sudo vim /etc/dovecot/conf.d/90-quota.conf
  plugin {
    quota = maildir:User quota
    quota_rule = *storage=900M
    quota_rule2 = Trash:storage=+100M
    ...
  }
sudo service dovecot restart

您也可以参考 Dovecot 配额插件的官方文档:https://wiki.dovecot.org/Quota/Configuration

如何在 Postfix 中设置邮箱配额

请随时通过提交 Pull Request 完成此部分。