From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81229 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Fancy-Split / Regexp question Date: Mon, 06 Feb 2012 15:08:56 +0100 Message-ID: <877h00vytj.fsf@tsdh.uni-koblenz.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328537370 2330 80.91.229.3 (6 Feb 2012 14:09:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 14:09:30 +0000 (UTC) Cc: ding@gnus.org To: michael.zombok@googlemail.com Original-X-From: ding-owner+M29510@lists.math.uh.edu Mon Feb 06 15:09:27 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 1RuPG0-0006hq-7N for ding-account@gmane.org; Mon, 06 Feb 2012 15:09:24 +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 1RuPFj-0005va-Dk; Mon, 06 Feb 2012 08:09:07 -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 1RuPFh-0005vQ-Um for ding@lists.math.uh.edu; Mon, 06 Feb 2012 08:09:05 -0600 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 1RuPFd-0001M3-Ga for ding@lists.math.uh.edu; Mon, 06 Feb 2012 08:09:05 -0600 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RuPFb-00026g-Rc for ding@gnus.org; Mon, 06 Feb 2012 15:08:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id DECE01A4125; Mon, 6 Feb 2012 15:08:58 +0100 (CET) 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 wqg4k5cNSRZA; Mon, 6 Feb 2012 15:08:58 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from tsdh.uni-koblenz.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 6188B1A411C; Mon, 6 Feb 2012 15:08:58 +0100 (CET) In-Reply-To: (michael zombok's message of "Mon, 06 Feb 2012 08:01:28 +0100") User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81229 Archived-At: michael.zombok@googlemail.com writes: Hi Michael, > I am trying hard to setup a fancy-splitting-rule for a mailing list. > The 'tag' in the subject header of the mails I want to catch is > '[ab-cd-ef]' (including the braces) but I don't get it. I tried > various versions without success. What is the correct syntax? > > (any ".*\\[ab-cd-ef\\].*" "news.ab-cd-ef") Syntactically, this regex is correct, i.e., it matches only the string containing "[ab-cd-ef]". You can omit the two ".*", though. I think, the problem is the `any'. If I remember correctly, that's a shorthand for To, From, Cc, Bcc, but not Subject. So probably you want a rule like that: ("subject" "\\[ab-cd-ef\\]" "news.ab-cd-ef") Bye, Tassilo BTW: If that's a mailing list, it's probably better to use the List-Id header for splitting.