24552838cbbdd691f9acd84cc47febcaf5d4417a
2 /********************************************************************************
3 * include/plugin_forward.inc.php : The class for forwards
4 * ------------------------------
6 * This file is part of the philter distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
10 class AddHdrPlugin
extends ActionPlugin
{
11 function AddHdrPlugin() { $this->ActionPlugin(); }
12 function rtti() { return 3; }
13 function name() { return _i18n('3_add_hdr'); }
17 function(Node, data) {
21 Node.appendChild(document.createElement('br'));
22 Node.appendChild(document.createTextNode('X-'));
24 var hdr_i = document.createElement('input');
25 hdr_i.setAttribute('type', 'text');
26 hdr_i.setAttribute('name', Node.name+'[1]');
27 hdr_i.setAttribute('value', (data[1] ? data[1] :'') );
28 Node.appendChild(hdr_i);
30 Node.appendChild(document.createTextNode(': '));
32 var val_i = document.createElement('input');
33 val_i.setAttribute('type', 'text');
34 val_i.setAttribute('name', Node.name+'[2]');
35 val_i.setAttribute('value', (data[2] ? data[2] :'') );
36 Node.appendChild(val_i);
41 function to_string($_data) {
42 return " xfilter \"reformail -A 'X-"
43 .addslashes($_data[1]).": "
44 .addslashes($_data[2])."'\"\n";
48 /********************************************************************************
50 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
51 ********************************************************************************/