From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35564 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: How to match '[' in nnmail-split-fancy Date: 02 Apr 2001 08:05:30 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171290 3796 80.91.224.250 (21 Oct 2002 03:34:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:34:50 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 23258 invoked by alias); 2 Apr 2001 06:06:00 -0000 Original-Received: (qmail 23250 invoked from network); 2 Apr 2001 06:05:59 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 2 Apr 2001 06:05:59 -0000 Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id IAA14605; Mon, 2 Apr 2001 08:05:31 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id IAA24608; Mon, 2 Apr 2001 08:05:30 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id IAA19249; Mon, 2 Apr 2001 08:05:30 +0200 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} In-Reply-To: (Nevin Kapur's message of "01 Apr 2001 20:32:37 -0400") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.101 Original-Lines: 30 Xref: main.gmane.org gmane.emacs.gnus.general:35564 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35564 On 01 Apr 2001, Nevin Kapur wrote: > It looks to me like fancy splitting matches on word boundaries at > the *end* of words, Isn't there some special-casing when the regexp starts with ".*"? I think when Gnus sees this, it omits the leading \\< that it would normally insert. > i.e., the above regexp produces > > ^\\(\\(subject\\):.*\\)\\(\\[.+\\] *$\\)\\> > > in nnmail-fancy-split. I can't think of any way to match ']' (or for > that matter any other character that is not a legal word boundary) > at the end of the string with this restriction. > > Perhaps someone with better regexp skills than me can help... I think a similar trick should be done for the end of the regexp. Hm... Yes, look after line 1232 in nnmail.el, there you can see the special case for splits beginning with ".*". I think partial should be renamed to partial-front and a similar partial-rear variable should be introduced. Opinions? kai -- Be indiscrete. Do it continuously.