Roundcube Community Forum

 

sieve filter question

Started by fritz001, February 11, 2010, 01:17:53 AM

Previous topic - Next topic

fritz001

can someone give me a clue abot if there is any ??

require ["fileinto"];
if anyof (header :contains "From" "postmaster")
{
        fileinto "INBOX.test";
        keep;
        }
elsif anyof (header :contains "X-Spam-Flag" "YES")
        {
        fileinto "INBOX.Spam";
        }

So if i receive a message from postmaster to send the message in test folder, but if i receive a message from postmaster and has Spam flag status to YES to move the message in SPAM.

P.S.  i have dovecot 1.1.9 patched with cmusieve support