Results 1 to 5 of 5

Thread: Howto setup subject content based filter ?

  1. #1
    Join Date
    Apr 2009
    Posts
    20
    Rep Power
    6

    Default Howto setup subject content based filter ?

    Hello Community,

    I did some search on the forum to found an answer but no one found.

    My question is, how can i setup filters on zimbra based on subject content?

    Ex: Redirect all email with subject contain 'Expression' to a specific mailbox.

    Thank you

  2. #2
    Join Date
    Apr 2009
    Posts
    20
    Rep Power
    6

    Default

    Hello Community,

    Is there any idea regarding my post?

    Best regards.

  3. #3
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    It's in there.

    Look under the preferences tab. Mail --> Filters

    Do you need anything special that is not provided there?

  4. #4
    Join Date
    Apr 2009
    Posts
    20
    Rep Power
    6

    Default

    Thank you for your post.

    I want to do it for all domain users through the Admin Consol or CLI and not the Webmail.

    Do you have an idea?

    Thank you

  5. #5
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    I did some checking. Filters are defined as Sieve scripts inside the zimbraMailSieveScript parameter for each user (not present if there aren't any filters). So it could be as simple as coming up with the right value for this parameter and running a zmprov script to set its value. Beware that the parameter is not multi-valued and that you could end up removing your users' own filters if you're not careful.

    As a test, I created a filter via the web interface and then did a zmprov getAccount to see what the output was:

    Code:
    [zimbra@demo ~]$ zmprov ga demo@example.net zimbraMailSieveScript 
    # name demo@example.net
    zimbraMailSieveScript: require ["fileinto", "reject", "tag", "flag"];
    
    # FILTER_NAME
    if anyof (header :contains "subject" "CONTAINS") {
        fileinto "DESTINATION";
        stop;
    }

Similar Threads

  1. Filter based on folder
    By davecais in forum Users
    Replies: 0
    Last Post: 01-19-2010, 11:37 AM
  2. how to alter (filter) the subject of email (or its body) ?
    By Michael REMY in forum Administrators
    Replies: 1
    Last Post: 12-11-2009, 06:11 AM
  3. pop3 content filter?
    By tiger2000 in forum Administrators
    Replies: 1
    Last Post: 11-27-2009, 03:30 AM
  4. Howto setup TLS usage with upstream MTA
    By markymarknz in forum Installation
    Replies: 3
    Last Post: 10-21-2008, 12:49 PM
  5. content filter attacked?
    By ahhhh in forum Administrators
    Replies: 2
    Last Post: 03-26-2007, 06:29 PM

Posting Permissions

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