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

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 05-29-2009, 02:50 AM
Starter Member
 
Posts: 1
Question String Lists supported in Sieve Rules?

Does Zimbra support the use of "String Lists"?

From RFC3028, section 2.4.2.1:
For instance, the test `header :contains ["To", "Cc"]
["me@example.com", "me00@landru.example.edu"]' is true if either the
To header or Cc header of the input message contains either of the
e-mail addresses "me@example.com" or "me00@landru.example.edu".


I have not been able to figure out how to use SaveRulesRequest and store data which would produce the following script:


if allof ( header :contains ["From","Subject"]
[ "ADV:", "adult dvd", "adult movie", "adultdirect", "adultemail" ] )
{
fileinto "/Junk";
stop;
}


THANKS in advance
Reply With Quote
  #2 (permalink)  
Old 05-29-2009, 05:47 AM
Outstanding Member
 
Posts: 708
Default

Is this just for your own account, or are you migrating from a sieve-supporting system to Zimbra?

I don't know that we tried string lists like that, but we were able to enter rules impossible to express with the exposed UI, and they worked. However, even if you could get the rules into place with zmmailbox/SOAP, it would break any future use of the GUI. Not a good idea.

We found that only a small proportion of our cyrus/imp users had created filters, and a large proportion of them were obviously wrong or at least absurdly overbroad. Some "lost" email was "found" as a result.

It was painful, but we told users to look at their old rules and copy the still applicable rules manually. Few did.

Btw, if a "fileinto /Junk" rule is actually a good idea, then it probably belongs in /opt/zimbra/conf/spamassassin/local-spam.cf, not a per-user sieve file.
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.