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

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

nnmail-split-fancy regexps confusing


From: Lars Tobias Borsting
Subject: nnmail-split-fancy regexps confusing
Date: Tue, 06 Jul 2004 01:53:38 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v)

Hi!

I have recently set up my mail splitting with nnmail-split-fancy, and it
is working well thaks to many trials and fails. How are the regexps
evaluated?

For example:

nnmail-split-fancy
  '(| (any "MYREGEXP" "mail.smith"))

MYREGEXP is like this: "(john|lisa)address@hidden".

This is supposed to be matching "address@hidden" and
"address@hidden". For this to work in gnus fancy splitting it
must be written like this in .gnus.el:

nnmail-split-fancy
  '(| (any "\\(john\\|lisa\\)address@hidden" "mail.thing"))

So basically I have to add two backslashes in front of each regexp
special character.

Why is this? Isn't it more logical to be able to write the regexp the
way it actually is, insted of making it all cluttered with these two
backslashes?

Regards
--
Lars Tobias Borsting


reply via email to

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