From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39854 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Sieve support? Date: Fri, 02 Nov 2001 10:14:38 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175498 30169 80.91.224.250 (21 Oct 2002 04:44:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:44:58 +0000 (UTC) Cc: Return-Path: Original-Received: (qmail 2245 invoked from network); 2 Nov 2001 09:17:03 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 2 Nov 2001 09:17:03 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15zaQF-0003aM-00; Fri, 02 Nov 2001 03:15:31 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 02 Nov 2001 03:15:11 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA25501 for ; Fri, 2 Nov 2001 03:14:58 -0600 (CST) Original-Received: (qmail 816 invoked by alias); 2 Nov 2001 09:15:12 -0000 Original-Received: (qmail 805 invoked from network); 2 Nov 2001 09:15:11 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 2 Nov 2001 09:15:11 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id fA29Ejk10605; Fri, 2 Nov 2001 10:14:45 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id KAA23227; Fri, 2 Nov 2001 10:14:39 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 721B0201A; Fri, 2 Nov 2001 10:14:39 +0100 (CET) Original-To: Simon Josefsson In-Reply-To: (Simon Josefsson's message of "Fri, 2 Nov 2001 09:50:19 +0100 (CET)") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 66 Xref: main.gmane.org gmane.emacs.gnus.general:39854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39854 Simon Josefsson writes: >> Well, err, it would invoke stop only inside the if... > > Really? I don't know Sieve, but the following seems to be the only > explanation about "stop" in the RFC, and it looks like it quits the whole > script. I've never used "stop" though, so I may be misreading the RFC. I meant: it only invokes `stop' if the condition matches. >> Does that mean I get something like >> >> if foo { >> fileinto "bar"; >> stop; >> } >> >> when crossposting is off and >> >> if foo { >> fileinto "bar"; >> } >> >> when crossposting is on? That's what I wanted to suggest, too. > > Right now you get > > if foo { > fileinto "foo" > } > elsif bar { > fileinto "bar > } > > if `gnus-sieve-crosspost' is nil, and > > if foo { > fileinto "foo"; > } > if bar { > fileinto "bar"; > } > > otherwise. Ah, yes, I think I used to have your style, too. But then somewhere I read about problems with nesting depths. So I converted your if/elseif style into mine. Hm. But you're right -- in your case it would be possible to add more action after the whole if/elseif/else statement. Hm. To learn more, I'd have to know more about how your idea constructs the whole Sieve script -- where are the group specific rules inserted and what happens when the user changes group rules and how is the other part of the script preserved... I can't test your sieve mechanism because I'm using an old Cyrus version which uses an old sieve protocol. Though of course I could test your rule-generating part. Hm. But I've already got so many useful rules :-) kai -- Lisp is kinda like tpircstsoP