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

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

Re: nnimap-split-fancy and regexp


From: Johan Bockgård
Subject: Re: nnimap-split-fancy and regexp
Date: Fri, 01 Feb 2008 14:04:49 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Uwe Brauer <oub@mat.ucm.es> writes:

(info "(gnus) Fancy Mail Splitting") says

    "Normally, VALUE in these splits must match a complete _word_
     according to the fundamental mode syntax table. In other words, all
     VALUE's will be implicitly surrounded by `\<...\>' markers, which
     are word delimiters. [...]

      1. You can set the `nnmail-split-fancy-match-partial-words'
         variable to non-`nil' in order to ignore word boundaries and
         instead the match becomes more like a grep. This variable
         controls whether partial words are matched during fancy
         splitting. The default value is `nil'. [...]

      2. VALUE beginning with `.*' ignores word boundaries in front of a
         word.  Similarly, if VALUE ends with `.*', word boundaries in the
         rear of a word will be ignored.  For example, the VALUE
         `"@example\\.com"' does not match `foo@example.com' but
         `".*@example\\.com"' does. [...]"

> No, I did not try, and I neither understand why 
> ("Subject"  ".*\\[Using Moodle:\\].*" "Moodle")
>
> does not work. As far as I understand regexp (and I must admit I don't
> understand them very much),
>  ".*\\[Using Moodle:\\].*"
> states match anything followed but Using Moodle followed by anything

It matches the string ``[Using Moodle:]'' (including brackets) surrounded
by anything.

-- 
Johan Bockgård


reply via email to

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