From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75629 Path: news.gmane.org!not-for-mail From: Kan-Ru Chen Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy Mail Splitting documentation needs improved? Date: Sun, 09 Jan 2011 23:10:37 +0800 Message-ID: <87oc7qp0ya.fsf@anar.kanru.info> References: <871v5cu72g.fsf@anar.kanru.info> <87sjxrre44.fsf@anar.kanru.info> <878vyuqlj0.fsf@anar.kanru.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294585886 12822 80.91.229.12 (9 Jan 2011 15:11:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 15:11:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23980@lists.math.uh.edu Sun Jan 09 16:11:21 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbwvR-0002LX-DH for ding-account@gmane.org; Sun, 09 Jan 2011 16:11:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PbwvB-0004B6-B6; Sun, 09 Jan 2011 09:11:05 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PbwvA-0004Au-6Y for ding@lists.math.uh.edu; Sun, 09 Jan 2011 09:11:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pbwuz-0005Uf-5P for ding@lists.math.uh.edu; Sun, 09 Jan 2011 09:11:03 -0600 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pbwux-00008L-9C for ding@gnus.org; Sun, 09 Jan 2011 16:10:52 +0100 Original-Received: by pwi7 with SMTP id 7so3470689pwi.17 for ; Sun, 09 Jan 2011 07:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to :subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=g4qwmulpHgLXDLWUzkceJ6z+fdBdoyhFqdX60hzR8Rg=; b=jvfpsedOHHRGAmvDRD1DmNeNoJCN9dipgFJNKLTkM2i72y4NhckKLCTx/JlOE+/GqQ gfD4421P3eNHgC/Id/EGwKHGFbW+Qrdq65ERECoGUY1nBjuayQZzoI3lmISP0kU3b6cV drnTXLJopU/HF87srInbi2jIGnikqG3TnhsfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=HSJNBrmOKSOnF8YZH53jWDt8yQriDzg+59sP6CJMbNzwek6fS8GpoAuFm3bLPRI2iu DhLdrEN1mCGjmicTndmPraK6ZQPtYtQJKNX4UrDYBq8s+k365WU+nYk1EuzBmV8WX5cG cNzra0d5H1lDy7oiCghWwE06lNICF9PPd4K44= Original-Received: by 10.142.170.9 with SMTP id s9mr3481707wfe.187.1294585843576; Sun, 09 Jan 2011 07:10:43 -0800 (PST) Original-Received: from anar.kanru.info (61-228-156-85.dynamic.hinet.net [61.228.156.85]) by mx.google.com with ESMTPS id w42sm6164711wfh.3.2011.01.09.07.10.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Jan 2011 07:10:41 -0800 (PST) Original-Received: from kanru by anar.kanru.info with local (Exim 4.72) (envelope-from ) id 1Pbwuj-0002rB-QB for ding@gnus.org; Sun, 09 Jan 2011 23:10:37 +0800 In-Reply-To: (Andreas Schwab's message of "Sun, 09 Jan 2011 14:27:26 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75629 Archived-At: Andreas Schwab writes: > Kan-Ru Chen writes: > >> So something that analog to `cond' would be very useful. Multiple >> condition that leads to one destination. > > That's what (| ...) does. > > Andreas. With current `&' and '|' operator you cannot split a mail to a destination depends on multiple condition. OK. Maybe we can, by specify the SPLIT target of a FIELD as nil: (& ("subject" "gnus" nil) (from "lars" nil) "guns.lars") But how do I say I want to spilt the mail to "mail.spam" if its "x-bogosity" contains "spam" *or* its "x-spam-status" contains "yes". Of course I can write (| ("x-bogosity" "spam" "mail.spam") ("x-spam-status" "yes" "mail.spam") "mail.misc") See, for every FIELD I have to duplicate the SPLIT, "mail.spam" in this case. - Kanru -- A badly written book is only a blunder. A bad translation of a good book is a crime. -- Gilbert Highet