[
{
    blockid=plugin;
    help=service_smtp_plugin_plugin;
    custom=com.netscape.management.msgserv.StorePluginControl;
    localvar={
	    .headers="Eintrag";
	    .headers.text="Pfad";
	    .headers="Optionen";
    },
    content=[
	{
	    ctrl=label;
	    text="Plugin-Konfiguration:";
	    font=["","",16];
	    wrap=$g.label.size5;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=separator;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=table;
	    id=pluginTable;
	    label=adminlabel;
	    showedit=true;
	    buttonsat=east;
	    delimiter=" ";
	    columns=$.headers;
	    columns=[
		{
		    header="Aktiv";
		    editor=boolean;
		    renderer=boolean;
		    width=60;
		},
		{
		    header="Pfad";
		    width=300;
		}
	    ]
	}
    ]
},
{
    blockid=addDialog;
    help=service_smtp_plugin_addDialog;
    localvar={
	    .entry.text="Eintrag:";
	    .path.text="Pfad:";
	    .path.hint="Pfad:";
	    .funcs.text="Funktionen:";
	    .funcs.hint="Funktionen:";
	    .init.text="Initialisieren:";
	    .init.hint="Initialisieren:";
	    .option.text="Optionen:";
	    .entry.labels=[PostSmtpAccept,PreSmtpDeliver];
	    .title.edit="Plugin-Eintrag";
	    .title.add="Plugin-Eintrag";
    },
    content=[
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=entrylabel;
		    text=$.entry.text;
		    wrap=$g.label.size0;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=choice;
		    aligny=0.5;
		    id=entryoption;
		    labels=$.entry.labels;
		    items=$.entry.labels;
		    val=$entry;
		    label=entrychoice;
		},
		{
		    ctrl=hglue;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=pathlabel;
		    text=$.path.text;
		    wrap=$g.label.size0;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=text;
		    aligny=0.5;
		    val=$path;
		    label=pathlabel;
		    focus = true;
            validate=[com.netscape.management.msgserv.util.ValidAbsolutePath,false];
            errhint=$.path.hint;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=funcslabel;
		    text=$.funcs.text;
		    wrap=$g.label.size0;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=text;
		    aligny=0.5;
		    val=$funcs;
		    label=funcslabel;
            validate=com.netscape.management.msgserv.util.NonemptyString;
            errhint=$.funcs.hint;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=initlabel;
		    text=$.init.text;
		    wrap=$g.label.size0;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=text;
		    aligny=0.5;
		    val=$init;
		    label=initlabel;
            validate=com.netscape.management.msgserv.util.NonemptyString;
            errhint=$.init.hint;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
        ctrl=pane;
        content=[
	    {
		    ctrl=label;
		    aligny=0.5;
		    id=optionlabel;
		    text=$.option.text;
            wrap=$g.label.size0;
	    },
	    {
		    ctrl=rigid;
	    },
	    {
		    ctrl=text;
		    aligny=0.5;
		    val=$option;
		    label=optionlabel;
	    }
	    ]
    },
  	{
 	    ctrl=label;
   	    wrap=$g.label.size4;
   	}
    ]
}
]
