From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62140 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.gnus.general Subject: nnmail-split-fancy-match-partial-words Date: Fri, 03 Mar 2006 10:45:39 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1141379278 13472 80.91.229.2 (3 Mar 2006 09:47:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 09:47:58 +0000 (UTC) Original-X-From: ding-owner+m10668@lists.math.uh.edu Fri Mar 03 10:47:55 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 1FF6st-0001TC-JM for ding-account@gmane.org; Fri, 03 Mar 2006 10:47:39 +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 1FF6si-0002Ek-00; Fri, 03 Mar 2006 03:47:28 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FF6r8-0002Ee-00 for ding@lists.math.uh.edu; Fri, 03 Mar 2006 03:45:50 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FF6r6-00086d-EB for ding@lists.math.uh.edu; Fri, 03 Mar 2006 03:45:50 -0600 Original-Received: from esemetz.metz.supelec.fr ([193.48.224.212]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FF6r5-00022N-00 for ; Fri, 03 Mar 2006 10:45:47 +0100 Original-Received: from smtp.metz.supelec.fr (smtp.metz.supelec.fr [193.48.224.205]) by esemetz.metz.supelec.fr (8.11.6/8.9.3) with ESMTP id k239jcD05171 for ; Fri, 3 Mar 2006 10:45:38 +0100 Original-Received: from SPARKY.metz.supelec.fr (sparky.metz.supelec.fr [193.48.224.190]) by smtp.metz.supelec.fr (8.12.8/8.12.8) with ESMTP id k239iIYV015993 for ; Fri, 3 Mar 2006 10:44:18 +0100 Original-To: ding User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.5 (windows-nt) X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=no version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on smtp.metz.supelec.fr X-Virus-Scanned: ClamAV 0.88/1310/Thu Mar 2 19:01:25 2006 on smtp.metz.supelec.fr X-Virus-Status: Clean X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62140 Archived-At: Hi, 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. BTW, all occurences of set-file-modes should be replaced with gnus-set-file-modes for windows users'sake (at least under xemacs). I'm using xemacs 21.5.b21 under native windows for what it worth. --- nnmail.el 2006-02-01 13:51:57.000000000 +0100 +++ nnmail.el 2006-03-03 10:15:01.000000000 +0100 @@ -1436,7 +1436,10 @@ (string= ".*" (substring value -2))) (setq value (substring value 0 -2) partial-rear "")) - (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)) (setq partial-front "" partial-rear "")) (setq regexp (concat "^\\(\\(" @@ -1907,7 +1904,7 @@ (let ((coding-system-for-write nnmail-file-coding-system) (file-name-coding-system nnmail-pathname-coding-system)) (write-region start end filename append visit lockname) - (set-file-modes filename nnmail-default-file-modes))) + (gnus-set-file-modes filename nnmail-default-file-modes))) ;;; ;;; Status functions Best regards, -- Fabrice Popineau ------------------------ e-mail: Fabrice.Popineau@supelec.fr | The difference between theory voice-mail: +33 (0) 387764715 | and practice, is that surface-mail: Supelec, 2 rue E. Belin, | theoretically, F-57070 Metz | there is no difference !