Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: info-gnus-english@gnu.org
Subject: Re: nnimap-split-fancy and regexp
Date: Fri, 01 Feb 2008 14:04:49 +0100	[thread overview]
Message-ID: <yoij8x24esjy.fsf@remote2.student.chalmers.se> (raw)
In-Reply-To: <mailman.6835.1201861708.18990.info-gnus-english@gnu.org>

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

  parent reply	other threads:[~2008-02-01 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6399.1201011064.18990.info-gnus-english@gnu.org>
2008-01-27 14:30 ` Johan Bockgård
2008-01-29 17:22   ` Uwe Brauer
     [not found]   ` <mailman.6684.1201627405.18990.info-gnus-english@gnu.org>
2008-01-31 11:26     ` Johan Bockgård
2008-02-01 10:27       ` Uwe Brauer
     [not found]       ` <mailman.6835.1201861708.18990.info-gnus-english@gnu.org>
2008-02-01 13:04         ` Johan Bockgård [this message]
2008-01-22 14:10 Uwe Brauer

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=yoij8x24esjy.fsf@remote2.student.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --cc=info-gnus-english@gnu.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).