From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60842 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Simple (I hope) split question Date: Tue, 30 Aug 2005 11:30:23 +0900 Organization: Emacsen advocacy group Message-ID: References: <87fyssesgc.fsf@lucien.dreaming> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1125369092 23223 80.91.229.2 (30 Aug 2005 02:31:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 02:31:32 +0000 (UTC) Original-X-From: ding-owner+M9374=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Aug 30 04:31:29 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9vtb-0007wE-GC for ding-account@gmane.org; Tue, 30 Aug 2005 04:30:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1E9vta-0001gt-01 for ding-account@gmane.org; Mon, 29 Aug 2005 21:30:42 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E9vtW-0001gl-00 for ding@lists.math.uh.edu; Mon, 29 Aug 2005 21:30:38 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E9vtU-0003eZ-DE for ding@lists.math.uh.edu; Mon, 29 Aug 2005 21:30:36 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E9vtS-0006y7-00 for ; Tue, 30 Aug 2005 04:30:34 +0200 Original-Received: from localhost.servershost.net ([127.0.0.1] helo=localhost) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1E9vtd-0003iL-Hh for ding@gnus.org; Mon, 29 Aug 2005 21:30:47 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:tW5jJcD1plHj/sJ9IKCo/xME8rw= X-Hashcash: 1:20:050830:ding@gnus.org::YqWdULygEDRDwgjg:00000Bkb X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60842 Archived-At: >>>>> In <87fyssesgc.fsf@lucien.dreaming> Bj=F6rn Lindstr=F6m wrote: > I'm using an RSS to e-mail gateway that generates headers of the form > X-Custom-Group: foo.bar > I want these messages to be sent to the corresponding mail group. > According to my best understanding of the manual, this split-fancy rule > should do the trick: > ("X-Custom-Group" ".*" "\\&") > However, this rule makes Gnus move the messages to the empty string > group. With nnml, this means writing the messages directly to files in > the root of my nnml tree, which by the way seems to be a bug in itself, > since there's no way to read those messages in Gnus. > Anyway, how should I modify that split rule so that mails with that > header are moved to the corresponding mail group? Does the following rule work? ("X-Custom-Group" "[\t ]\\([^\t\n ]+\\)" "\\1") There should be one or more spaces or tabs between the header and the group name, the group name should not contain whitespace, furthermore the `nnmail-split-fancy-match-partial-words' variable should be set to t (note that changing the value of that variable affects the behavior of the other splitting rules).