Im trying to create a mail filter rule on the fly , i was able to create a new rule, condition , action but in action my action is to redirect the corresponding messages to a certain folder(in my case "test" which already exists) , but i was not able to select a folder on the fly , it shows only browse button , can any one have any idea on how to go about this, i have pasted my code below
this._filter = new ZmFilterRule("test",true);
this._filter.setName("test");
this._condition = new ZmCondition(ZmFilterRule.C_FROM,ZmFilterRule.OP_MA TCHES,"test@test.net");
this._action = new ZmAction(ZmFilterRule.A_FOLDER,"test");
this._filter.addCondition(this._condition);
this._filter.addAction(this._action);
this._filterRule = new ZmFilterRules(this._appCtxt);
this._filterRule.addRule(this._filter);
any reply is deeply appreciated![]()


LinkBack URL
About LinkBacks


