From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75376 Path: news.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general Subject: Re: What's wrong with this fancy split? Date: Tue, 21 Dec 2010 15:50:26 -0800 Organization: The Eyrie Message-ID: <87k4j2k7nh.fsf@windlord.stanford.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292975468 12425 80.91.229.12 (21 Dec 2010 23:51:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2010 23:51:08 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23728@lists.math.uh.edu Wed Dec 22 00:51:03 2010 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 1PVByv-0001rV-63 for ding-account@gmane.org; Wed, 22 Dec 2010 00:51:01 +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 1PVBya-00009a-97; Tue, 21 Dec 2010 17:50:40 -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 1PVByY-00009N-E7 for ding@lists.math.uh.edu; Tue, 21 Dec 2010 17:50:38 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PVByX-0001aW-9S for ding@lists.math.uh.edu; Tue, 21 Dec 2010 17:50:38 -0600 Original-Received: from smtp3.stanford.edu ([171.67.219.83] helo=smtp.stanford.edu) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PVByV-0003QQ-VW for ding@gnus.org; Wed, 22 Dec 2010 00:50:36 +0100 Original-Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 3A4EF1A1506 for ; Tue, 21 Dec 2010 15:50:29 -0800 (PST) Original-Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id 8F3741A14C6 for ; Tue, 21 Dec 2010 15:50:26 -0800 (PST) Original-Received: by windlord.stanford.edu (Postfix, from userid 1000) id 78FD72F5F4; Tue, 21 Dec 2010 15:50:26 -0800 (PST) In-Reply-To: (Andreas Schwab's message of "Tue, 21 Dec 2010 23:41:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75376 Archived-At: Andreas Schwab writes: > Tommy Kelly writes: >> This fancy split is meant to match emails with "[some-list]" in the >> subject. >> >> ("subject" "\\[some-list\\]" "some-list") >> >> But it isn't. Any ideas why? > Because [ and ] are not word characters. See > nnmail-split-fancy-syntax-table. Practically speaking, what this means is that you need to write: ("subject" ".*\\[some-list\\].*" "some-list") instead. The regular expressions only match at word boundaries, which usually isn't what you want when they start or end with punctuation. -- Russ Allbery (rra@stanford.edu)