From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 02:49:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A589337B401 for ; Sat, 5 Apr 2003 02:49:50 -0800 (PST) Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B70943F93 for ; Sat, 5 Apr 2003 02:49:49 -0800 (PST) (envelope-from flynn@energyhq.homeip.net) Received: from christine.energyhq.tk (christine.energyhq.tk [192.168.100.1]) by energyhq.homeip.net (Postfix) with SMTP id BC7222B783 for ; Sat, 5 Apr 2003 12:49:49 +0200 (CEST) Date: Sat, 5 Apr 2003 12:49:46 +0200 From: Miguel Mendez To: freebsd-questions@freebsd.org Message-Id: <20030405124946.4ad0aa01.flynn@energyhq.homeip.net> In-Reply-To: <87of3oeqrq.fsf@pooh.honeypot.net> References: <87k7eeyc57.fsf@pooh.honeypot.net> <20030401083042.35dceb2f.flynn@energyhq.homeip.net> <8765pyxmkj.fsf@pooh.honeypot.net> <20030402104508.6cf80475.flynn@energyhq.homeip.net> <87of3oeqrq.fsf@pooh.honeypot.net> X-Mailer: Sylpheed version 0.8.11claws (GTK+ 1.2.10; i386--netbsdelf) X-Face: 1j}k*2E>Y\+C~E|/wehi[:dCM,{N7/uE3o# P,{t7gA/qnovFDDuyQV.1hdT7&#d)q"xY33}{_GS>kk'S{O]nE$A`T|\4&p\&mQyexOLb8}FO List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 10:49:50 -0000 --=.(whrOn(jh6?8yp Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 02 Apr 2003 11:46:33 -0600 Kirk Strauser wrote: Howdy, > Quick OT question: how do you debug a sieve script? I uploaded a very > simple script to my server: > > require "fileinto"; > > if header :contains "X-Spam-Flag" "YES" { > fileinto "INBOX.spam"; > } else { > fileinto "INBOX.foo"; > } > > and made it active. Both of the mailboxes user.kirk.foo and > user.kirk.spam(or INBOX.foo and INBOX.spam as seen from the client) > exist, but all mail keeps coming into INBOX. Did I miss a > "process_sieve_scripts = yes" flag somewhere? Oops, didn't see this one. There are two ways to use sieve, one is having a .sieve file in your home dir, the other is having sieve scripts in /usr/sieve. There's a setting in imapd.conf to select which way sieve scripts are handled, e.g. if you have lots of users but no real accounts. The relevant bits: sievedir: /var/imap/sieve # If enabled, deliver wil look for Sieve scripts in user's home # directories:# ~user/.sieve. sieveusehomedir: true Another thing, if you're using sieveshell you need to 1) upload script, 2) activate it, if you dont' activate it, it won't take effect. Perhaps that's what's happening? Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Tired of Spam? -> http://www.trustic.com --=.(whrOn(jh6?8yp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (NetBSD) iD8DBQE+jrTNnLctrNyFFPERAgCBAKDKjWVLqhO7xM5LephhB9QAGJuA2QCfeXuO BkhQTcdlZ7P6VN0t1gErSoY= =p9fx -----END PGP SIGNATURE----- --=.(whrOn(jh6?8yp--