From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82398 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy split trouble Date: Tue, 16 Oct 2012 15:21:33 +0200 Message-ID: <87bog2r1r6.fsf@thinkpad.tsdh.de> References: <87pq4i97x0.fsf@ericabrahamsen.net> <87d30ispf4.fsf@thinkpad.tsdh.de> <87626asp8x.fsf@thinkpad.tsdh.de> <874nlu1saf.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1350393729 17300 80.91.229.3 (16 Oct 2012 13:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 13:22:09 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M30664@lists.math.uh.edu Tue Oct 16 15:22: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 1TO768-0002Ev-Gg for ding-account@gmane.org; Tue, 16 Oct 2012 15:22:16 +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 1TO75a-0000CL-2h; Tue, 16 Oct 2012 08:21:42 -0500 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 1TO75Y-0000C8-Lx for ding@lists.math.uh.edu; Tue, 16 Oct 2012 08:21:40 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TO75X-0002Nl-4t for ding@lists.math.uh.edu; Tue, 16 Oct 2012 08:21:40 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TO75V-0000ho-Jq for ding@gnus.org; Tue, 16 Oct 2012 15:21:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 92463D2381; Tue, 16 Oct 2012 15:21:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x6sFH-lF8cFC; Tue, 16 Oct 2012 15:21:34 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 8B4C3D237F; Tue, 16 Oct 2012 15:21:34 +0200 (CEST) Mail-Followup-To: Eric Abrahamsen , ding@gnus.org In-Reply-To: <874nlu1saf.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 16 Oct 2012 21:05:12 +0800") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82398 Archived-At: Eric Abrahamsen writes: > In the meantime, given the back-quoted form of `nnmail-split-fancy', > do I need to do something special to get mail junking (ie deletion) > working correctly? This leaves "[Javascript]" messages in the misc > directory: > > (setq nnmail-split-fancy > `(| > ("subject" ,(rx "MCLC") "mail.mclc") > ("subject" ,(rx "[literocracy]") "mail.literocracy") > ("subject" "MARKED SPAM" "mail.PRspam") > ("to" ,(rx "django-users") "mail.django") > ("subject" ,(rx "[Javascript]") 'junk) > "mail.misc")) See Andreas answer. You need to set (setq nnmail-split-fancy-match-partial-words t) to match for things like "[Javascript]". Then, you'd probably want to activate word boundary matches for the other splits manually, e.g., (rx bow "MCLC" eow) instead of (rx "MCLC") which would also match "fooMCLCbar" [ok, that's rather uncommon]. Bye, Tassilo