Sieve problem
Michael Kaufmann
michael at enlighter.de
Sun Jun 29 07:29:28 EDT 2003
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" ] [ "xine-user-admin at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:xine.user";
}
the mail I want sieve to filter out looks like this:
[snip]
Message-Id: <200306291219.48118.mroi at users.sourceforge.net>
Sender: xine-user-admin at lists.sourceforge.net <== HERE!!!!
Errors-To: xine-user-admin at lists.sourceforge.net
X-BeenThere: xine-user at lists.sourceforge.net
[snap]
another example: I want to filter for "to" or "cc":
if header :contains [ "to", "cc" ] [ "amavis-user at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:amavis.user";
}
the mail looks like this:
[snip]
From: Klavs Klavsen <kl at vsen.dk>
To: Amavis-user Mailinglist <amavis-user at lists.sourceforge.net> <== 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" ] [ "postfix-users at postfix.org",
"postfix-users at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:postfix.users";
}
/*************************/
/* Amavis Mailing Listen */
/*************************/
if header :contains [ "to", "cc" ] [ "amavis-tech at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:amavis.tech";
}
if header :contains [ "to", "cc" ] [ "amavis-user at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:amavis.user";
}
if header :contains [ "to", "cc" ] [ "amavis-announce at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:amavis.announce";
}
/***********************/
/* Xvid Mailing Listen */
/***********************/
if header :contains [ "sender" ] [ "xvid-users-bounces at xvid.org" ]
{
fileinto "INBOX.ml:xvid.users";
}
if header :contains [ "sender" ] [ "xvid-announce-bounces at xvid.org" ]
{
fileinto "INBOX.ml:xvid.announce";
}
/***********************/
/* Xine Mailing Listen */
/***********************/
if header :contains [ "sender" ] [ "xine-user-admin at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:xine.user";
}
/**********************/
/* Uni Mailing Listen */
/**********************/
if header :contains [ "sender" ] [ "studi-info-admin at swt.uni-stuttgart.de" ]
{
fileinto "INBOX.ml:uni.studi-info";
}
if header :contains [ "sender" ] [ "ak-hackin-admin at faveve.uni-stuttgart.de" ]
{
fileinto "INBOX.ml:uni.ak-hackin";
}
/****************************/
/* Transcode Mailing Listen */
/****************************/
if header :contains [ "sender" ] [
"transcode-users at admin@theorie.physik.uni-goettingen.de" ]
{
fileinto "INBOX.ml:transcode.users";
}
if header :contains [ "sender" ] [
"transcode-users at admin@theorie.physik.uni-goettingen.de" ]
{
fileinto "INBOX.ml:transcode.devel";
}
/************************/
/* Squid Mailing Listen */
/************************/
if header :contains [ "to", "cc" ] [ "squid-users at squid-cache.org" ]
{
fileinto "INBOX.ml:squid.users";
}
/*****************************/
/* Php Wizard Mailing Listen */
/*****************************/
if header :contains [ "to", "cc" ] [ "phpwizard at rent-a-phpwizard.de" ]
{
fileinto "INBOX.ml:php.phpwizard";
}
/**********************************/
/* Open Anti Virus Mailing Listen */
/**********************************/
if header :contains [ "to", "cc" ] [
"openantivirus-announce at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:openav.announce";
}
if header :contains [ "to", "cc" ] [
"openantivirus-discuss at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:openav.discuss";
}
/************************/
/* NVRec Mailing Listen */
/************************/
if header :contains [ "to", "cc" ] [ "nvrec-open at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:nvrec.open";
}
/**************************/
/* Mobilix Mailing Listen */
/**************************/
if header :contains [ "to", "cc" ] [ "linux-laptop at mobilix.org" ]
{
fileinto "INBOX.ml:mobilix.laptop";
}
/**********************/
/* Lyx Mailing Listen */
/**********************/
if header :contains [ "to", "cc" ] [ "lyx-users at lists.lyx.org" ]
{
fileinto "INBOX.ml:lyx.users";
}
/***********************/
/* Licq Mailing Listen */
/***********************/
if header :contains [ "to" , "cc" ] [ "licq-users at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:licq.users";
}
/**********************/
/* K3b Mailing Listen */
/**********************/
if header :contains [ "to", "cc" ] [ "k3b-user at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:k3b.user";
}
/*****************************/
/* Gimp Print Mailing Listen */
/*****************************/
if header :contains [ "to", "cc" ] [
"gimp-print-announce at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:gimp-print.announce";
}
/********************************/
/* Enlightenment Mailing Listen */
/********************************/
if header :contains [ "to", "cc" ] [
"enlightenment-users at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:enlighenment.users";
}
if header :contains [ "to", "cc" ] [
"enlightenment-devel at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:enlighenment.devel";
}
if header :contains [ "to", "cc" ] [ "enlightenment-cvs at lists.sourceforge.net"
]
{
fileinto "INBOX.ml:enlighenment.cvs";
}
if header :contains [ "to", "cc" ] [
"enlightenment-announce at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:enlighenment.announce";
}
/*******************************/
/* Dansguardian Mailing Listen */
/*******************************/
if header :contains [ "to", "cc" ] [ "dansguardian at yahoogroups.com" ]
{
fileinto "INBOX.ml:dansguardian.public";
}
/************************/
/* Cyrus Mailing Listen */
/************************/
if header :contains [ "to", "cc" ] [ "info-cyrus at lists.andrew.cmu.edu" ]
{
fileinto "INBOX.ml:cyrus.info";
}
if header :contains [ "to", "cc" ] ["info-cyrus at andrew.cmu.edu" ]
{
fileinto "INBOX.ml:cyrus.info";
}
if header :contains [ "to", "cc" ] [ "cyrus-sasl at lists.andrew.cmu.edu" ]
{
fileinto "INBOX.ml:cyrus.sasl";
}
if header :contains [ "to", "cc" ] [ "cyrus-sasl at andrew.cmu.edu" ]
{
fileinto "INBOX.ml:cyrus.sasl";
}
/***********************/
/* ACPI Mailing Listen */
/***********************/
if header :contains [ "to", "cc" ] [ "linux-pm-devel at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:acpi.devel";
}
if header :contains [ "to", "cc" ] [ "acpi-support at lists.sourceforge.net" ]
{
fileinto "INBOX.ml:acpi.support";
}
/***************/
/* Gevas Admin */
/***************/
if anyof(header :contains [ "to" ] [ "gevas at enlighter.de" ], envelope
:contains [ "to" ] [ "gevas at enlighter.de" ])
{
fileinto "INBOX.admin.gevas";
}
Here are all my rules:
More information about the Info-cyrus
mailing list