how to debug sieve

Thorsten Schnebeck thorsten.schnebeck at gmx.net
Sat Apr 30 18:17:23 CEST 2005


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 at list",
> | 	     address :contains :localpart ["to", "cc", "bcc"] "info-cyrus"){
> |   fileinto "INBOX.imap";}
> | elsif header :contains "List-ID" "openldap-software at OpenLDAP.org" {
> |   fileinto "INBOX.openldap";}
> | elsif header :contains "X-BeenThere" "kolab-users at 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




More information about the users mailing list