Search in sources :

Example 1 with GetFilterRulesRequest

use of com.zimbra.soap.mail.message.GetFilterRulesRequest in project zm-mailbox by Zimbra.

the class ZMailbox method getIncomingFilterRules.

public synchronized ZFilterRules getIncomingFilterRules(boolean refresh) throws ServiceException {
    if (incomingRules == null || refresh) {
        GetFilterRulesResponse resp = invokeJaxb(new GetFilterRulesRequest());
        incomingRules = new ZFilterRules(resp.getFilterRules());
    }
    return new ZFilterRules(incomingRules);
}
Also used : GetFilterRulesRequest(com.zimbra.soap.mail.message.GetFilterRulesRequest) GetFilterRulesResponse(com.zimbra.soap.mail.message.GetFilterRulesResponse)

Aggregations

GetFilterRulesRequest (com.zimbra.soap.mail.message.GetFilterRulesRequest)1 GetFilterRulesResponse (com.zimbra.soap.mail.message.GetFilterRulesResponse)1