I'm no sieve expert but this works on my system:

require ["fileinto"];
if header :contains "Sender" "owner-info-cyrus" {
 fileinto "INBOX.lists.cyrus";
}

Did you include the require line?  Or maybe sieve needs the opening
squigle bracket on the if line.  Did you read the rfc?

On Sun, 2003-06-29 at 04:29, Michael Kaufmann wrote:
> Hi!
> I'm trying to get sieve working on my Cyrus IMAPD (2.1.13) but I can't get it 
> working the way I want. I get a lot of mails from mailing lists every day and 
> I want them to be moved fout of my INBOX into INBOX.ml:blah.blah but only the 
> filter rules for postix-users work correctly.
> 
> I want to filter for "sender":
> 
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:xine.user";
>     }
> 
> the mail I want sieve to filter out looks like this:
> 
> [snip]
> Message-Id: <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]             <== HERE!!!!
> Errors-To: [EMAIL PROTECTED]
> X-BeenThere: [EMAIL PROTECTED]
> [snap]
> 
> another example: I want to filter for "to" or "cc":
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:amavis.user";
>     }
> 
> the mail looks like this:
> 
> [snip]
> From: Klavs Klavsen <[EMAIL PROTECTED]>
> To: Amavis-user Mailinglist <[EMAIL PROTECTED]>       <== HERE!!!
> Content-Type: text/plain
> [snap]
> 
> Why do my rulez not match? I'm frustrated!
> 
> thanx
> Michael
> 
> ps: Here is my complete rule set:
> 
> require "fileinto";
> 
> /**************************/
> /* Postfix Mailing Listen */  <== WORKS
> /**************************/
> 
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]", 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:postfix.users";
>     }
> 
> /*************************/
> /* Amavis Mailing Listen */
> /*************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:amavis.tech";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:amavis.user";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:amavis.announce";
>     }
> 
> /***********************/
> /* Xvid Mailing Listen */
> /***********************/
> 
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:xvid.users";
>     }
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:xvid.announce";
>     }
> 
> /***********************/
> /* Xine Mailing Listen */
> /***********************/
> 
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:xine.user";
>     }
> 
> /**********************/
> /* Uni Mailing Listen */
> /**********************/
> 
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:uni.studi-info";
>     }
> if header :contains [ "sender" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:uni.ak-hackin";
>     }
> 
> /****************************/
> /* Transcode Mailing Listen */
> /****************************/
> 
> if header :contains [ "sender" ] [ 
> "[EMAIL PROTECTED]@theorie.physik.uni-goettingen.de" ]
>     {
>     fileinto "INBOX.ml:transcode.users";
>     }
> if header :contains [ "sender" ] [ 
> "[EMAIL PROTECTED]@theorie.physik.uni-goettingen.de" ]
>     {
>     fileinto "INBOX.ml:transcode.devel";
>     }
> 
> /************************/
> /* Squid Mailing Listen */
> /************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:squid.users";
>     }
> 
> /*****************************/
> /* Php Wizard Mailing Listen */
> /*****************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:php.phpwizard";
>     }
> 
> /**********************************/
> /* Open Anti Virus Mailing Listen */
> /**********************************/
> 
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:openav.announce";
>     }
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:openav.discuss";
>     }
> 
> /************************/
> /* NVRec Mailing Listen */
> /************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:nvrec.open";
>     }
> 
> /**************************/
> /* Mobilix Mailing Listen */
> /**************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:mobilix.laptop";
>     }
> 
> /**********************/
> /* Lyx Mailing Listen */
> /**********************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:lyx.users";
>     }
> 
> /***********************/
> /* Licq Mailing Listen */
> /***********************/
> 
> if header :contains [ "to" , "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:licq.users";
>     }
> 
> /**********************/
> /* K3b Mailing Listen */
> /**********************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:k3b.user";
>     }
> 
> /*****************************/
> /* Gimp Print Mailing Listen */
> /*****************************/
> 
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:gimp-print.announce";
>     }
> 
> /********************************/
> /* Enlightenment Mailing Listen */
> /********************************/
> 
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:enlighenment.users";
>     }
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:enlighenment.devel";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" 
> ]
>     {
>     fileinto "INBOX.ml:enlighenment.cvs";
>     }
> if header :contains [ "to", "cc" ] [ 
> "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:enlighenment.announce";
>     }
> 
> /*******************************/
> /* Dansguardian Mailing Listen */
> /*******************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:dansguardian.public";
>     }
> 
> /************************/
> /* Cyrus Mailing Listen */
> /************************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:cyrus.info";
>     }
> if header :contains [ "to", "cc" ] ["[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:cyrus.info";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:cyrus.sasl";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:cyrus.sasl";
>     }
> 
> /***********************/
> /* ACPI Mailing Listen */
> /***********************/
> 
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:acpi.devel";
>     }
> if header :contains [ "to", "cc" ] [ "[EMAIL PROTECTED]" ]
>     {
>     fileinto "INBOX.ml:acpi.support";
>     }
> 
> /***************/
> /* Gevas Admin */
> /***************/
> 
> if anyof(header :contains [ "to" ] [ "[EMAIL PROTECTED]" ], envelope 
> :contains [ "to" ] [ "[EMAIL PROTECTED]" ])
>     {
>     fileinto "INBOX.admin.gevas";
>     }
> 
> 
> Here are all my rules:
> 

Reply via email to