2 /********************************************************************************
3 * include/plugin_autoreply.inc.php : The class for auto-replies
4 * --------------------------------
6 * This file is part of the philter distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
10 class AutoReplyPlugin
extends ActionPlugin
{
11 function FwdPlugin() { $this->ActionPlugin(); }
12 function rtti() { return 2; }
13 function name() { return _i18n('2_auto_reply'); }
16 $res = "function(Node, data) {\n"
18 . " var ta = document.createElement('textarea');\n"
19 . " ta.setAttribute('name', Node.name+'[1]');\n"
20 . " ta.setAttribute('style', 'width:100%;');\n"
21 . " ta.setAttribute('rows', '10');\n"
22 . " if(data[1]) ta.value = data[1];\n"
24 . " Node.appendChild(document.createElement('br'));\n"
25 . " Node.appendChild(ta);\n"
32 /********************************************************************************
34 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
35 ********************************************************************************/