Results 1 to 2 of 2

Thread: create a new filter via zimlet (ZmFilterRule)?

  1. #1
    ersecchio is offline Junior Member
    Join Date
    May 2009
    Posts
    5
    Rep Power
    6

    Default create a new filter via zimlet (ZmFilterRule)?

    hi,
    I'm developing an zimlet for creating a FILTER

    i' use this code:

    Code:
    this._filter = new ZmFilterRule("name filter ",true);
    this._filter.setName("test");
    this._condition = new ZmCondition(ZmFilterRule.C_FROM,ZmFilterRule.OP_MATCHES,"myserver@sever.net");
    this._action = new ZmAction(ZmFilterRule.A_FOLDER,"myfolder");
    this._filter.addCondition(this._condition);
    this._filter.addAction(this._action);
    this._filterRule = new ZmFilterRules(this._appCtxt);
    this._filterRule.addRule(this._filter);

    but this code clear the the old filter and create only the filter "name filter"...

    how can I create a new filter without removing the old filter?

    Tnx

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,504
    Rep Power
    57

    Default

    In general you'd have to get the old filter then add this to the end of it and then save the complete filter, AFAIK there is no facility for appending a new filter to the current ones.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  3. Replies: 5
    Last Post: 01-11-2008, 05:34 AM
  4. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 05:48 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •