From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39856 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Sieve support? Date: Fri, 2 Nov 2001 13:39:05 +0100 (CET) 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=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: main.gmane.org 1035175500 30178 80.91.224.250 (21 Oct 2002 04:45:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:45:00 +0000 (UTC) Cc: Return-Path: Original-Received: (qmail 2134 invoked from network); 2 Nov 2001 12:41:21 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 2 Nov 2001 12:41:21 -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 15zdc8-00040T-00; Fri, 02 Nov 2001 06:40:00 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 02 Nov 2001 06:39:40 -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 GAA25932 for ; Fri, 2 Nov 2001 06:39:29 -0600 (CST) Original-Received: (qmail 2091 invoked by alias); 2 Nov 2001 12:39:43 -0000 Original-Received: (qmail 2086 invoked from network); 2 Nov 2001 12:39:43 -0000 Original-Received: from unknown (HELO slipsten.extundo.com) (195.42.214.241) by gnus.org with SMTP; 2 Nov 2001 12:39:43 -0000 Original-Received: from localhost (jas@localhost) by slipsten.extundo.com (8.11.6/8.11.6) with ESMTP id fA2Cd5N19553; Fri, 2 Nov 2001 13:39:05 +0100 X-Authentication-Warning: slipsten.extundo.com: jas owned process doing -bs Original-To: Kai =?iso-8859-1?q?Gro=DFjohann?= In-Reply-To: Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 39 Xref: main.gmane.org gmane.emacs.gnus.general:39856 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39856 On Fri, 2 Nov 2001, Kai Großjohann wrote: > 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, using a large if/elsif-block shouldn't count as nesting? Or maybe the implementation just rewrites the elseif into a else + if. Hm, RFC 3028 says implementations should support 15 levels of nesting, and I got one or two magnitude more rules than that, so I think it's ok. > 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 :-) No problemo -- just D g and then insert your current Sieve script before/after the Gnus generated block. Then you can migrate some of the rules into group parameters incrementally. Maybe the old Cyrus protocol is "close" enough to the current protocol. I'll look in the archives to see how your server reacted, maybe only the greeting is different.. Or use `D u' which doesn't use the sieve protocol, but rather the installsieve program that comes with Cyrus IMAPD to talk to the server. This parts need some more documentation though, you probably need to frob `gnus-sieve-method'. (Perhaps the `gnus-sieve-method' variable should be removed, maybe this should be solved differently -- e.g. D g / D u asking the user which method to generate the rules on, or add the commands to the server buffer where the method to use is implicit.)