From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82395 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy split trouble Date: Tue, 16 Oct 2012 20:07:16 +0800 Message-ID: <87k3uq1uyz.fsf@ericabrahamsen.net> References: <87pq4i97x0.fsf@ericabrahamsen.net> <87d30ispf4.fsf@thinkpad.tsdh.de> <87626asp8x.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350389121 6897 80.91.229.3 (16 Oct 2012 12:05:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 12:05:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30661@lists.math.uh.edu Tue Oct 16 14:05:28 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TO5tn-0007Rx-HM for ding-account@gmane.org; Tue, 16 Oct 2012 14:05:27 +0200 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 1TO5sk-0008En-0t; Tue, 16 Oct 2012 07:04:22 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TO5si-0008Eb-HA for ding@lists.math.uh.edu; Tue, 16 Oct 2012 07:04:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TO5sh-0000lJ-58 for ding@lists.math.uh.edu; Tue, 16 Oct 2012 07:04:20 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TO5sf-0007Kq-OE for ding@gnus.org; Tue, 16 Oct 2012 14:04:17 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TO5sj-0006GA-4J for ding@gnus.org; Tue, 16 Oct 2012 14:04:21 +0200 Original-Received: from 50-56-99-223.static.cloud-ips.com ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 14:04:21 +0200 Original-Received: from eric by 50-56-99-223.static.cloud-ips.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Oct 2012 14:04:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 50-56-99-223.static.cloud-ips.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:3IEMe08VyzNL7unSHk8JVgKNxEo= X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82395 Archived-At: Tassilo Horn writes: > Tassilo Horn writes: > > Ups, too fast. This > >> `(| ("subject" (rx "[group name]") "mail.group") >> ("subject" (rx "MARKED SPAM" eol) "mail.spam") >> ;; more splits... >> ;; ... and a default target >> "mail.misc") > > should have been > > `(| ("subject" ,(rx "[group name]") "mail.group") > ("subject" ,(rx "MARKED SPAM" eol) "mail.spam") > ;; more splits... > ;; ... and a default target > "mail.misc") > > i.e., the `rx' forms should be evaluated. (`rx' is super-handy if you > aren't completely sure how things with special meaning in regexes have > to be quoted to match literally.) Thanks! I didn't know about `rx', that was helpful. I'm definitely using nnmail -- I use mpop to bring mail down into a local maildir, and then a maildir source to pull into gnus. Here's what I've got at present, it just doesn't work! (setq nnmail-split-methods 'bbdb/gnus-split-method bbdb-split-gnus-nomatch-function 'nnmail-split-fancy) (setq nnmail-split-fancy `(| (: gnus-registry-split-fancy-with-parent) (| ("subject" ,(rx "MCLC") "mail.mclc") ("subject" ,(rx "[literocracy]") "mail.literocracy") ("subject" ,(rx "MARKED SPAM" eol) "mail.PRspam") ("to" ,(rx "django-users") "mail.django")) "mail.misc")) Hope I'm doing something obviously wrong...