From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81657 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: sometime splits Date: Tue, 27 Mar 2012 22:29:57 +0100 Message-ID: <877gy5n356.fsf@ericabrahamsen.net> References: <87obrhnayk.fsf@ericabrahamsen.net> <87limlpzp8.fsf@windlord.stanford.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332883874 9722 80.91.229.3 (27 Mar 2012 21:31:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2012 21:31:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29937@lists.math.uh.edu Tue Mar 27 23:31:13 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 1SCdyt-0002td-VE for ding-account@gmane.org; Tue, 27 Mar 2012 23:31:08 +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 1SCdyD-0005mw-46; Tue, 27 Mar 2012 16:30:25 -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 1SCdyB-0005ml-FK for ding@lists.math.uh.edu; Tue, 27 Mar 2012 16:30:23 -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 1SCdy0-0003gk-En for ding@lists.math.uh.edu; Tue, 27 Mar 2012 16:30:22 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SCdxy-0003yU-AZ for ding@gnus.org; Tue, 27 Mar 2012 23:30:10 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SCdxw-00029q-5n for ding@gnus.org; Tue, 27 Mar 2012 23:30:08 +0200 Original-Received: from cpc1-dals12-0-0-cust563.hari.cable.virginmedia.com ([92.236.50.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2012 23:30:08 +0200 Original-Received: from eric by cpc1-dals12-0-0-cust563.hari.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Mar 2012 23:30:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc1-dals12-0-0-cust563.hari.cable.virginmedia.com X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:3SgYlu82N/7H33CU2uV5VykmmRk= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81657 Archived-At: On Tue, Mar 27 2012, Russ Allbery wrote: > Eric Abrahamsen writes: > >> I'm having an irritating issue where one type of common email message >> gets split incorrectly. I run a website that emails me automatically >> with spam notifications, so I can catch false positives before they're >> automatically deleted. The top of my `nnmail-split-fancy' looks like >> this: > >> '(| >> ("From" "info@paper-republic.org" >> (| ("Subject" "\\[Paper Republic\\]" > > This kept catching me too. You have to be careful about regexes; Gnus > adds an implicit word boundary on either end of the regex, but Emacs > doesn't consider the transition from a non-alphanumeric to another > non-alphanumeric to be a word boundary. So if your regex begins or ends > with some non-alphanumeric characters, the regex won't match the way you > expect. > > Short version: change that to ".*\\[Paper Republic\\].*" and I bet it will > start working. Ooh, I'll give that a shot, thank you! -- GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-03-06 on pellet Ma Gnus v0.4