random-cuber/responses

带有变量的响应模板

安装: 148

依赖: 0

建议者: 0

安全: 0

星标: 3

关注者: 3

分支: 1

开放问题: 2

类型:roundcube-plugin

1.3.13 2020-08-13 21:18 UTC

This package is auto-updated.

Last update: 2024-09-14 05:59:22 UTC


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>

手动安装

安装可以分为两步:提供资源和激活配置。

  1. 提供插件资源。例如,对于 archlinux 上的 roundcube
cd /usr/share/webapps/roundcubemail/plugins

rm -r -f responses
git clone https://github.com/random-cuber/responses.git responses
  1. 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 贡献翻译