Author Topic: sieve filter question  (Read 2172 times)

Offline fritz001

  • Jr. Member
  • **
  • Posts: 22
sieve filter question
« on: February 11, 2010, 01:17:53 AM »
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