Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Fancy split - simple regexp problem
@ 2011-09-20 18:55 Adam Sjøgren
  2011-10-06  5:05 ` Tim Landscheidt
  0 siblings, 1 reply; 11+ messages in thread
From: Adam Sjøgren @ 2011-09-20 18:55 UTC (permalink / raw)
  To: info-gnus-english

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."

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.3990.1316544929.939.info-gnus-english@gnu.org>]

end of thread, other threads:[~2012-01-03 23:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-20 18:55 Fancy split - simple regexp problem Adam Sjøgren
2011-10-06  5:05 ` Tim Landscheidt
2011-10-06  9:22   ` Štěpán Němec
2011-10-20 12:50     ` Tim Landscheidt
2011-10-21  9:14       ` Štěpán Němec
2011-10-23 23:08         ` Tim Landscheidt
2011-10-24 10:40           ` Štěpán Němec
2011-10-24 22:08             ` Tim Landscheidt
     [not found] <mailman.3990.1316544929.939.info-gnus-english@gnu.org>
2011-10-26  8:41 ` Nicolas Berthier
2011-11-06 19:30   ` Adam Sjøgren
     [not found]   ` <mailman.1950.1320607816.15868.info-gnus-english@gnu.org>
2012-01-03 23:51     ` Lars Magne Ingebrigtsen

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).