From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82399 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 21:48:03 +0800 Message-ID: <87txtuzfxo.fsf@ericabrahamsen.net> References: <87pq4i97x0.fsf@ericabrahamsen.net> <87d30ispf4.fsf@thinkpad.tsdh.de> <87626asp8x.fsf@thinkpad.tsdh.de> <87k3uq1uyz.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350395110 30008 80.91.229.3 (16 Oct 2012 13:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 13:45:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30665@lists.math.uh.edu Tue Oct 16 15:45:17 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 1TO7SM-0004Ff-1t for ding-account@gmane.org; Tue, 16 Oct 2012 15:45:14 +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 1TO7Rx-0000K7-AN; Tue, 16 Oct 2012 08:44:49 -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 1TO7Rv-0000Js-HP for ding@lists.math.uh.edu; Tue, 16 Oct 2012 08:44:47 -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 1TO7Rr-0001BQ-Pg for ding@lists.math.uh.edu; Tue, 16 Oct 2012 08:44:47 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TO7Rp-0001CM-PD for ding@gnus.org; Tue, 16 Oct 2012 15:44:41 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TO7Rv-0003n6-P0 for ding@gnus.org; Tue, 16 Oct 2012 15:44:47 +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 15:44:47 +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 15:44:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 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:FKXBWw1iMgiRlmHXvPXWZmaJ66Q= X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82399 Archived-At: Andreas Schwab writes: > Eric Abrahamsen writes: > >> (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")) > > Note that fancy splitting implicitly puts word boundaries around the > matches (see nnmail-split-fancy-match-partial-words). Since ?\[ and ?\] > are not word characters by default, a word boundary cannot match around > them. Thanks to you both! For various reasons I ended up using the invert-partial flag -- mostly it just seemed cleaner. Things are working great now, apart from the fact that I still can't split on BBDB! Here's what worked out (I had to evaluate the "junk" symbols): (setq nnmail-split-fancy `(| ("subject" ,(rx "MCLC") "mail.mclc") ("subject" ,(rx "[literocracy]") "mail.literocracy" t) (any ,(rx "django-users") ,'junk) ("subject" ,(rx "[sqlalchemy") ,'junk t) ("subject" ,(rx "[Image-SIG") ,'junk t) ("subject" ,(rx "[cherrypy-users") ,'junk t) ("subject" ,(rx "[Javascript") ,'junk t) "mail.misc"))