[prev in list] [next in list] [prev in thread] [next in thread]
List: kolab-users
Subject: Re: how to debug sieve
From: Thorsten Schnebeck <thorsten.schnebeck () gmx ! net>
Date: 2005-04-30 16:17:23
Message-ID: 200504301817.24479.thorsten.schnebeck () gmx ! net
[Download RAW message or body]
Am Samstag 30 April 2005 14:35 schrieb Dieter Kluenter:
> Hi,
> I hav e created a sieve script[1], injected and activated ist, using
> xemacs and gnus-sieve, the script is activated, that is the symlink
> default.bc is set to myscript.bc, I can login with sivtest and
> sieveshell, but still incoming mail ist not filed into my
> subfolders. Sieve is not logging anything, how can I debug sieve to
> see what is going wrong?
> By the way, I tested both delimiter versions with no avail.
>
> -Dieter
>
> Footnotes:
> [1]
>
> ,----[ mysieve.siv ]
>
> | require "fileinto";
> | if header :is "X-Mailinglist" "suse-linux" {
> | fileinto "INBOX/suse-linux";}
> | elsif header :is "X-Mailinglist" "suse-isdn" {
> | fileinto "INBOX.isdn";}
> | elsif header :is "X-Mailinglist" "suse-amd64" {
> | fileinto "INBOX.amd64";}
> | elsif allof (header :contains "Sender" "owner-info-cyrus@list",
> | address :contains :localpart ["to", "cc", "bcc"] "info-cyrus"){
> | fileinto "INBOX.imap";}
> | elsif header :contains "List-ID" "openldap-software@OpenLDAP.org" {
> | fileinto "INBOX.openldap";}
> | elsif header :contains "X-BeenThere" "kolab-users@kolab.org"{
> | fileinto "INBOX.kolab";}
> | else {fileinto "INBOX";
> | }
>
> `----
This script works with sieve on Kolab:
#Sieve-Script zur Sortierung von Mailinglisten
require "fileinto";
# SPAM
if header :contains ["X-GMX-Antispam"] ["1","2","3","4"]{
fileinto "INBOX/Spam";
stop;
}
if header :contains ["X-Spam-Status"] ["Yes, hits"]{
fileinto "INBOX/Spam";
stop;
}
# DVB-Linux
if header :contains ["List-Id"] ["linux-dvb.linuxtv.org"] {
fileinto "INBOX/Mailinglisten/DVB-Linux";
stop;
}
HTH
Thorsten
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic