From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39980 Path: main.gmane.org!not-for-mail From: NAGY Andras Newsgroups: gmane.emacs.gnus.general Subject: Re: possible gnus-sieve bug Date: Sun, 04 Nov 2001 14:17:17 +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 1035175602 30817 80.91.224.250 (21 Oct 2002 04:46:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:46:42 +0000 (UTC) Return-Path: Original-Received: (qmail 10251 invoked from network); 4 Nov 2001 13:18:53 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 4 Nov 2001 13:18:53 -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 160N9r-0001Us-00; Sun, 04 Nov 2001 07:17:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 04 Nov 2001 07:17:30 -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 HAA07257 for ; Sun, 4 Nov 2001 07:17:16 -0600 (CST) Original-Received: (qmail 10242 invoked by alias); 4 Nov 2001 13:17:24 -0000 Original-Received: (qmail 10237 invoked from network); 4 Nov 2001 13:17:24 -0000 Original-Received: from mail.inf.elte.hu (157.181.161.6) by gnus.org with SMTP; 4 Nov 2001 13:17:24 -0000 Original-Received: by mail.inf.elte.hu (Postfix, from userid 28535) id 30F618071; Sun, 4 Nov 2001 14:17:18 +0100 (CET) Original-To: ding@gnus.org Mail-Copies-To: nobody In-Reply-To: (Simon Josefsson's message of "Sat, 3 Nov 2001 20:06:03 +0100 (CET)") Original-Lines: 24 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (powerpc-ibm-aix4.3.3.0) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39980 On Sat, 03 Nov 2001, at 20:06, Simon Josefsson wrote: > On Sat, 3 Nov 2001, NAGY Andras wrote: > >> Gnus-sieve has this function: >> >> (defun gnus-sieve-guess-rule-for-article () >> "Guess a sieve rule based on RFC822 article in buffer. >> Return NIL if no rule could be guessed." >> (when (message-fetch-field "sender") >> `(sieve address "sender" ,(regexp-quote (message-fetch-field "sender"))))) >> >> AFAIK, the default `comparator' in Sieve tests is `:is' (exact match), >> therefore the regexp-quote is not required here; actually I think >> rules generated this way should not work at all. What do you think? > > Arhm, erhm, well, Cyrus Sieve uses fnmatch() even with :is (I believe) > which is sort of like regexps, so I escaped the rule. Now > will probably do the escaping in the server (this was recently discussed > on the cyrus-imap list) so maybe we should remove it. (But I haven't > upgraded yet...) > > But yes, it is wrong. OTOH it would be nice to rewrite the function into > something much more intelligent and with a nicer interface.