From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62141 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmail-split-fancy-match-partial-words Date: Fri, 03 Mar 2006 20:13:08 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141384649 31392 80.91.229.2 (3 Mar 2006 11:17:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 11:17:29 +0000 (UTC) Cc: ding Original-X-From: ding-owner+m10669@lists.math.uh.edu Fri Mar 03 12:17:28 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FF8Ho-0004Yl-3L for ding-account@gmane.org; Fri, 03 Mar 2006 12:17:28 +0100 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 1FF8Hi-0002VS-00; Fri, 03 Mar 2006 05:17:22 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FF8F2-0002VN-00 for ding@lists.math.uh.edu; Fri, 03 Mar 2006 05:14:36 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FF8Ez-0000FH-3t for ding@lists.math.uh.edu; Fri, 03 Mar 2006 05:14:36 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FF8Ex-0003AZ-00 for ; Fri, 03 Mar 2006 12:14:31 +0100 Original-Received: from [205.234.185.198] (port=39697 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1FF8FS-0007IC-Tf; Fri, 03 Mar 2006 05:15:06 -0600 Original-To: Fabrice Popineau 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/23.0.0 (gnu/linux) Cancel-Lock: sha1:p9qHCfNjIqHHgJqbvHPqLAHCaS0= X-Hashcash: 1:20:060303:fabrice.popineau@supelec.fr::UooHoYEJm+zRWlu+:00000000000000000000000000000000007zcZ X-Hashcash: 1:20:060303:ding@gnus.org::XdffZDXEzUcHtrDw:00002n3t 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: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62141 Archived-At: >>>>> In >>>>> Fabrice Popineau wrote: > Id' like to draw attention on the following point. I have a rather long > nnmail-split-fancy list. I had this split rule : > ("subject" "\\[ce\\]" foo.ce) > that was not working and I had much trouble in finding why. In fact, > that is because of interaction between > nnmail-split-fancy-match-partial-words and the status of [] that do not > belong to words in the default syntax table. While I'd like to retain > the default nil value for matching partial words, I'd expect also that > any regexp I put in the fancy split rule is taken for what it is. > I ended up in crudely patching nnmail-split-it in nnmail.el but that's > defintely not a clean answer to the problem. Maybe that's a limitation > of regexp/syntax tables after all. > - (when nnmail-split-fancy-match-partial-words > + (when > + (or nnmail-split-fancy-match-partial-words > + ;; FP: if there are backets in the sequence, don't surround with <..> > + (string-match "\\[.*\\]" value)) Thank you for the patch, but it seems to be better to use "\\\\\\[.*\\\\\\]" because "\\[.*\\]" matches "[0-9]", "[a-z]", etc. Does anyone notice other adverse effects? > BTW, all occurences of set-file-modes should be replaced with > gnus-set-file-modes for windows users'sake (at least under xemacs). > - (set-file-modes filename nnmail-default-file-modes))) > + (gnus-set-file-modes filename nnmail-default-file-modes))) I think it should be applied anyway. mail-source.el and mm-decode.el also use set-file-modes. > I'm using xemacs 21.5.b21 under native windows for what it worth. I will install those changes if no one comments within a couple of days.