From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39896 Path: main.gmane.org!not-for-mail From: NAGY Andras Newsgroups: gmane.emacs.gnus.general Subject: Re: Sieve support? Date: Sat, 03 Nov 2001 01:35:24 +0100 Organization: Eotvos Lorand University - Depts. of Informatics, Budapest, Hungary 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 1035175533 30384 80.91.224.250 (21 Oct 2002 04:45:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:45:33 +0000 (UTC) Return-Path: Original-Received: (qmail 16402 invoked from network); 3 Nov 2001 00:36:22 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 3 Nov 2001 00:36:22 -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 15zomt-0001aZ-00; Fri, 02 Nov 2001 18:35:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 02 Nov 2001 18:35:31 -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 SAA29843 for ; Fri, 2 Nov 2001 18:35:19 -0600 (CST) Original-Received: (qmail 16395 invoked by alias); 3 Nov 2001 00:35:32 -0000 Original-Received: (qmail 16390 invoked from network); 3 Nov 2001 00:35:32 -0000 Original-Received: from quimby.gnus.org (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 3 Nov 2001 00:35:32 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 15zon3-000362-00 for ; Sat, 03 Nov 2001 01:36:01 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-NNTP-Posting-Host: pandora.inf.elte.hu Original-X-Trace: quimby2.netfonds.no 1004747761 11905 157.181.161.17 (3 Nov 2001 00:36:01 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 3 Nov 2001 00:36:01 GMT User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (powerpc-ibm-aix4.3.3.0) Cancel-Lock: sha1:4YrUYKAnB98qjEyCOML7dVqi02M= Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 42 Xref: main.gmane.org gmane.emacs.gnus.general:39896 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39896 On Thu, 01 Nov 2001, at 17:50, Simon Josefsson wrote: > I don't think the automatically generated code should ever invoke > "stop", since you may want to put Sieve code after the Gnus generated > code block. Do you agree? Yes, that's why I would still prefer the elsif way. On Fri, 02 Nov 2001, at 18:48, Amos Gouaux wrote: > kg> if foo { > kg> fileinto "bar"; > kg> stop; > kg> } > > I've tended to do this for mailing list folder stuffing. Main > reason for it is out of paranoia that if I've got a vacation item at > the bottom of the script, there's no way at all that a list or list > admin will have to deal with it. Well, you can set crosspost to nil, and add something like else { # vacation stuff, storing in "mail.misc", etc } after the generated part. How about a trade-off? :-) Let's introduce a new variable instead of -crosspost, defining which control structures to use when building the script? Say, gnus-sieve-script-flavour: if (default): [if () { fileinto }]*, crossposting elsif: `if ... [elsif () { fileinto } ]*', no crossposting, no stop stop: [if () { fileinto; stop; }]*, no crossposting, with stop Andras