Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-2010, 02:23 PM
Member
 
Posts: 12
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
Reply With Quote
  #2 (permalink)  
Old 07-01-2010, 03:57 AM
Member
 
Posts: 12
Default

Hello Community,

Is there any idea regarding my post?

Best regards.
Reply With Quote
  #3 (permalink)  
Old 07-01-2010, 08:40 AM
Advanced Member
 
Posts: 236
Default

It's in there.

Look under the preferences tab. Mail --> Filters

Do you need anything special that is not provided there?
Reply With Quote
  #4 (permalink)  
Old 07-01-2010, 08:50 AM
Member
 
Posts: 12
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
Reply With Quote
  #5 (permalink)  
Old 07-02-2010, 02:34 AM
Advanced Member
 
Posts: 236
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;
}
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.