use of com.zimbra.client.ZFilterRules in project zm-mailbox by Zimbra.
the class ZMailboxUtil method doModifyOutgoingFilterRule.
private void doModifyOutgoingFilterRule(String[] args) throws ServiceException {
ZFilterRules rules = mMbox.getOutgoingFilterRules(true);
doModifyFilterRule(args, rules);
mMbox.saveOutgoingFilterRules(rules);
}
use of com.zimbra.client.ZFilterRules in project zm-mailbox by Zimbra.
the class ZMailboxUtil method doModifyIncomingFilterRule.
private void doModifyIncomingFilterRule(String[] args) throws ServiceException {
ZFilterRules rules = mMbox.getIncomingFilterRules(true);
doModifyFilterRule(args, rules);
mMbox.saveIncomingFilterRules(rules);
}
use of com.zimbra.client.ZFilterRules in project zm-mailbox by Zimbra.
the class ZMailboxUtil method doAddOutgoingFilterRule.
private void doAddOutgoingFilterRule(String[] args) throws ServiceException {
ZFilterRules rules = mMbox.getOutgoingFilterRules();
doAddFilterRule(args, rules);
mMbox.saveOutgoingFilterRules(rules);
}
use of com.zimbra.client.ZFilterRules in project zm-mailbox by Zimbra.
the class ZMailboxUtil method doAddIncomingFilterRule.
/*
addFilterRule(afrl)
--before {existing-rule-name}
--after {existing-rule-name}
--first
--last
{name} [*active|inactive] [any|*all] {conditions}+ {actions}+
*/
private void doAddIncomingFilterRule(String[] args) throws ServiceException {
ZFilterRules rules = mMbox.getIncomingFilterRules();
doAddFilterRule(args, rules);
mMbox.saveIncomingFilterRules(rules);
}
use of com.zimbra.client.ZFilterRules in project zm-mailbox by Zimbra.
the class ZMailboxUtil method doGetIncomingFilterRules.
private void doGetIncomingFilterRules() throws ServiceException {
ZFilterRules rules = mMbox.getIncomingFilterRules(true);
printFilterRules(rules);
}
Aggregations