random-cuber / responses
带有变量的响应模板
1.3.13
2020-08-13 21:18 UTC
Requires
- php: >=5.4.0
- roundcube/plugin-installer: >=0.1.2
README
技术插件名称为 responses。
插件通过注入由邮件头(发件人、收件人、抄送)派生的字段,在编写响应模板中提供变量替换功能,从而可以使邮件消息更加个性化。
插件还支持基于HTML的响应模板。
例如,假设以下编写邮件的标题
from: "thomas cube" <thomas.cube@mailer.net>
to: "machniak, aleksander" <aleks@example.com>
此带有变量的示例模板
{to_head}, hello.
Thank you,
{from_head}.
--
{from_full} <{from_mail}>
在插入后会产生以下结果
Aleksander, hello.
Thank you,
Thomas.
--
Thomas Cube <thomas.cube@mailer.net>
手动安装
安装可以分为两步:提供资源和激活配置。
- 提供插件资源。例如,对于 archlinux 上的 roundcube
cd /usr/share/webapps/roundcubemail/plugins
rm -r -f responses
git clone https://github.com/random-cuber/responses.git responses
- 在
roundcube
配置中激活插件。例如,对于 archlinux 上的 roundcube
cat /etc/webapps/roundcubemail/config/config.inc.php
$config['plugins'] = array(
'responses', // plugin proper
);
设置
导航至
// to change plugin features:
Settings -> Preferences -> Composing Messages -> Responses
// to manage response templates:
Settings -> Responses -> ...
菜单条目
待办
: 待办
操作
使用可用的插件变量准备模板。
翻译
通过 transifex 贡献翻译。