info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fancy split - simple regexp problem


From: Adam Sjøgren
Subject: Fancy split - simple regexp problem
Date: Tue, 20 Sep 2011 20:55:08 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

I am trying to add a split to my nnmail-fancy-split that will catch
headers like this:

  X-Bugzilla-Product: gdm

And put emails matching in the group bugzilla.[productname], i.e.
"bugzilla.gdm" in this example.

When I try with this split:

  ("X-Bugzilla-Product" "\\w+" "bugzilla.\\&")

B q tells me:

  "This message would go to bugzilla.m"

If I change the regexp to "\\w\\w\\w" it goes to bugzilla.gdm - but I
don't fancy (haha) writing an entry for each possible length.

What am I doing wrong?

I even tried M-x regexp-builder to make a regexp that starts with \\<
and ends with \\> and matches "gdm", but for some reason I can't make
the result work in fancy splitting.

I'm sure there is an obvious thing, I just can't see it.


  Best regards,

    Adam

-- 
 "You make a fair point. Knowing when not to say              Adam Sjøgren
  anything is not something the lazyweb had              asjo@koldfront.dk
  historically been good at."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]