[
{
    blockid=ube;
    help=service_smtp_plugin_ube_ube_ube;
    custom=com.netscape.management.msgserv.StoreUbeControl;
    localvar={
	.headers="\u689d\u76ee";
	.headers.text="\u8def\u5f91";
	.headers="\u9078\u9805";
	.ube.button.moveup="\u4e0a\u79fb";
	.ube.button.movedown="\u4e0b\u79fb";
	.ube.button.option="\u9078\u9805...";
	.parseheader.text="\u5256\u6790\u90f5\u4ef6\u6a19\u984c";
    },
    layout=[ybox];
    content=[
	{
	    ctrl=label;
	    text="\u672a\u7d93\u8acb\u6c42\u7684\u5783\u573e\u96fb\u5b50\u90f5\u4ef6\u914d\u7f6e";
	    font=["","",16];
	    wrap=$g.label.size5;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=separator;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=table;
	    id=ubeTable;
	    label=adminlabel;
	    showedit=true;
	    buttonsat=east;
	    delimiter=" ";
	    columns=$.headers;
	    columns=[
		{
		    header="\u4f5c\u7528\u4e2d";
		    editor=boolean;
		    renderer=boolean;
		    width=60;
		},
		{
		    header="\u7be9\u9078";
		    width=300;
		}
	    ]
	   buttons=[
	     {
	       ctrl=button;
	       id=moveupbutton;
	       text=$.ube.button.moveup;
	       cmd=.table.moveUp;
	     },
	     {
	       ctrl=button;
	       id=movedownbutton;
	       text=$.ube.button.movedown;
	       cmd=.table.moveDown;
	     }
	   ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=togglepane;
	    id=parseheadertoggle;
	    text=$.parseheader.text;
	    aligny=0.5;
	}
    ]
},
{
    blockid=addDialog;
    help=service_smtp_plugin_ube_ube_addDialog;
    localvar={
	.title.edit="UBE \u7be9\u9078";
	.title.add="UBE \u7be9\u9078";
	.entry.text="\u540d\u7a31 (\u9078\u64c7\u6027\u7684)\uff1a ";
	.path.text="\u8def\u5f91\uff1a";
	.option.text="\u9078\u9805\uff1a";
	.funcs.text="\u529f\u80fd\uff1a";
	.if.text="IF";
	.otherfield.text="\u5176\u4ed6\u6b04\u4f4d (\u4f7f\u7528\u8005\u5b9a\u7fa9\u7684)";
	.case.text="\u5927\u5c0f\u5beb\u76f8\u7b26";
	.envonly.text="\u50c5\u4fe1\u5c01";
	.value.equal.text="=";
	.value.notequal.text="!=";
	.value.text="\u6578\u503c";
	.then.text="THEN";
	.choice.labels=[COPY,DROP,DROPRCPT,EXIT,HOLDCOPY,HOLDONLY,JUMP,REJECT,RUN];
	.argument.label="\u5f15\u6578";
        /* Have fun i18n this */
	.ifchoice.labels=[Also-Control,Alternate-Recipient,Apparently-To,Approved,Article-Names,Article-Updates,Auto-Forwarded,Autoforwarded,Bcc,Cc,
          Channel-To,Client,Comments,Content-Base,Content-Conversion,Content-Description,Content-Disposition,Content-ID,Content-Identifier,Content-Language,
          Content-Location,Content-MD5,Content-Return,Content-SGML-Entity,Content-Transfer-Encoding,Content-Type,Conversion,Conversion-With-Loss,
          DL-Expansion-History,DL-Expansion-History-Indication,Date,Delivery-Date,Delivery-Report,Description,Discarded-X400-IPMS-Extensions,
          Discarded-X400-MTS-Extensions,Disclose-Recipients,Disposition,Distribution,Encoding,Errors-To,Expires,Expiry-Date,Extension,Fax,Fcc,Followup-To,
          For-Comment,For-Handling,Forwarded,From,Generate-Delivery-Report,History,ID,Identifier,Importance,In-Reply-To,Incomplete-Copy,Information-Types,
          Keywords,Language,Length,Lines,MD5,MIME-Version,Mail-From,Mail-System-Version,Mailer,Message-ID,Message-Type,Newsgroups,Newsreader,Obsoletes,
          Organization,Organization,Original-Encoded-Information-Types,Originating-Client,Path,Phone,Precedence,Prevent-NonDelivery-Report,Priority,Rcpt-To,
          Received,Recipient,References,Reply-By,Reply-To,Resent,Resent-Date,Resent-From,Resent-Message-ID,Resent-Reply-To,Resent-To,Resent-bcc,Resent-cc,
          Return,Return-Path,Return-Receipt-To,See-Also,Sender,Sensitivity,Status,Subject,Summary,Supersedes,Telefax,To,Transfer-Encoding,Type,User-From,
          Version,X-Mailer,X-Newsreader,X400-Content-Return,Xref];

    },
    layout=[gridbag];
    content=[
	{
	    ctrl=label;
	    id=entrylabel;
	    text=$.entry.text;
	    label=ifchoice;
	    constraint={
		gridx=0;
		gridy=0;
		anchor=east;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=text;
	    val=$label;
	    label=entrylabel;
	    focus=true;
	    constraint={
		gridx=1;
		gridy=0;
		gridwidth=3;
		weightx=9;
		fill=h;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=separator;
	    constraint={
		gridx=0;
		gridy=1;
		weightx=1;
		gridwidth=4;
		fill=h;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=label;
	    text=$.if.text;
	    constraint={
		gridx=0;
		gridy=2;
		anchor=east;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=choice;
	    editable=true;
	    id=ifchoice;
	    labels=$.ifchoice.labels;
	    items=$.ifchoice.labels;
	    val=$field;
	    constraint={
		gridx=1;
		gridy=2;
		gridwidth=3;
		anchor=west;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=pane;
	    constraint={
		gridx=1;
		gridy=3;
		anchor=east;
		insets=$g.insets.comp;
	    }
	    content=[
		{
		    ctrl=togglepane;
		    style=radio;
		    val=$radio1;
		    text=$.value.equal.text;
		    group=equality;
		},
		{
		    ctrl=togglepane;
		    style=radio;
		    val=$radio2;
		    text=$.value.notequal.text;
		    group=equality;
		}
	    ]
	},
	{
	    ctrl=label;
	    id=valuetextlabel;
	    text=$.value.text;
	    constraint={
		gridx=2;
		gridy=3;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=text;
	    label=valuetextlabel;
	    val=$thevalue;
	    constraint={
		gridx=3;
		gridy=3;
		weightx=1;
		fill=h;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=pane;
	    constraint={
		gridx=1;
		gridy=4;
		gridwidth=3;
		anchor=west;
		insets=$g.insets.comp;
	    }
	    content=[
		{
		    ctrl=togglepane;
		    val=$case;
		    id=casesensitive;
		    text=$.case.text;
		},
		{
		    ctrl=togglepane;
		    val=$envonly;
		    text=$.envonly.text;
		    id=envonly;
		}
	    ]
	},
	{
	    ctrl=label;
	    id=thenlabel;
	    text=$.then.text;
	    constraint={
		gridx=0;
		gridy=6;
		anchor=east;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=choice;
	    id=actionchoiceid;
	    labels=$.choice.labels;
	    items=$.choice.labels;
	    val=$action;
	    constraint={
		gridx=1;
		gridy=6;
		gridwidth=3;
		anchor=west;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=label;
	    id=argumentlabel;
	    text=$.argument.label;
	    constraint={
		gridx=2;
		gridy=7;
		anchor=east;
		insets=$g.insets.comp;
	    }
	},
	{
	    ctrl=text;
	    label=argumentlabel;
	    val=$argument;
	    constraint={
		gridx=3;
		gridy=7;
		/*gridwidth=2;*/
		weightx=1;
		fill=h;
		insets=$g.insets.comp;
	    }
	}
    ]
},
{
    blockid=optionDialog;
    help=service_smtp_plugin_ube_ube_optionDialog;
    localvar={
	.holdtplbody.text="\u52d5\u4f5c\u7bc4\u672c\u6a94\u6848\u7684\u8def\u5f91\uff1a";
    .holdtplerrmsg.text="\u932f\u8aa4\u8a0a\u606f\u6a94\u6848\u7684\u8def\u5f91\uff1a";
	.title.optionDialog="\u7de8\u8f2f UBE \u9078\u9805";
    },
    content=[
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=tplbody;
		    text=$.holdtplbody.text;
		    wrap=$g.label.size1;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=text;
		    aligny=0.5;
		    val=$HoldTplBody;
		    label=tplbody;
		    focus = true;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=pane;
	    content=[
		{
		    ctrl=label;
		    aligny=0.5;
		    id=tplerr;
		    text=$.holdtplerrmsg.text;
		    wrap=$g.label.size1;
		},
		{
		    ctrl=rigid;
		},
		{
		    ctrl=text;
		    aligny=0.5;
		    val=$HoldTplErrmsg;
		    label=tplerr;
		}
	    ]
	},
	{
	    ctrl=vstrut;
	},
	{
	    ctrl=label;
	    size=$g.label.size4;
	}
    ]
}
]

