Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: How to match '[' in nnmail-split-fancy
Date: 02 Apr 2001 08:05:30 +0200	[thread overview]
Message-ID: <vaf8zljkf9x.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <m34rw8xhsq.fsf@fermat.mts.jhu.edu> (Nevin Kapur's message of "01 Apr 2001 20:32:37 -0400")

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.


  reply	other threads:[~2001-04-02  6:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-01 21:33 Nevin Kapur
2001-04-01 21:53 ` Kai Großjohann
2001-04-02  0:32   ` Nevin Kapur
2001-04-02  6:05     ` Kai Großjohann [this message]
2001-04-02 15:46       ` Nevin Kapur
2001-04-11 11:52         ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vaf8zljkf9x.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).