Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnimap-split-fancy and regexp
@ 2008-01-22 14:10 Uwe Brauer
  0 siblings, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2008-01-22 14:10 UTC (permalink / raw)
  To: info-gnus-english


Hello

I receive mails from the Moodle forum, which typically have the
following header:


Subject: Using Moodle: Re: Cannot get moodle to follow a symlink on	localhost
In-reply-to: <moodlepost391135@moodle.org>
X-Mailer: PHPMailer [version Moodle 2007101506]


So what I want is to configure 
 nnimap-split-rule  and nnimap-split-fancy respectively 

Such that all this mails are moved to a Imap folder called Moodle

I tried the following

   ("Reply-to:" "Do not reply to this email <noreply@moodle.org>" "Moodle")
   ("X-Mailer:" "PHPMailer [version Moodle 2007101506]" "Moodle")
   ("Subject"  ".*\\[Using Moodle:\\].*" "Moodle")
   ("Subject"  "\\[Using Moodle:\\].*" "Moodle")
   ("In-reply-to:" "<moodlepost0@moodle.org>" "Moodle")


But none really helped and the mail was moved to my HAM folder.

Most likely this is a problem of regexp but I don't know how to set
that up correctly.

Anybody can help

Thanks in advance

Uwe Brauer

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnimap-split-fancy and regexp
       [not found]       ` <mailman.6835.1201861708.18990.info-gnus-english@gnu.org>
@ 2008-02-01 13:04         ` Johan Bockgård
  0 siblings, 0 replies; 6+ messages in thread
From: Johan Bockgård @ 2008-02-01 13:04 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnimap-split-fancy and regexp
  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>
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2008-02-01 10:27 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1036 bytes --]

>>>>> "Johan" == Johan Bockgård <bojohan+news@dd.chalmers.se> writes:
   >> >> 
   >> >> ("Reply-to:" "Do not reply to this email
   >> >> <noreply@moodle.org>" "Moodle") ("X-Mailer:" "PHPMailer
   >> >> [version Moodle 2007101506]" "Moodle") ("Subject" ".*\\[Using
   >> >> Moodle:\\].*" "Moodle") ("Subject" "\\[Using Moodle:\\].*"
   >> >> "Moodle") ("In-reply-to:" "<moodlepost0@moodle.org>"
   >> >> "Moodle")
   >> 
   >> > (execute-kbd-macro (kbd
   >> >   "C-h i d m gnus RET i nnmail-split-fancy-match-partial-words RET"))
   >> 
   >> Well but this functionality seems not to exist for the 
   >> *nnimap* backend.

   > Did you try?  But first, do you understand now why your rules don't
   > match?

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




[-- Attachment #1.2: Type: application/pgp-signature, Size: 306 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnimap-split-fancy and regexp
       [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>
  0 siblings, 2 replies; 6+ messages in thread
From: Johan Bockgård @ 2008-01-31 11:26 UTC (permalink / raw)
  To: info-gnus-english

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

>>>>>> "Johan" == Johan Bockgård <bojohan+news@dd.chalmers.se> writes:
>
>    >> 
>    >> Such that all this mails are moved to a Imap folder called Moodle
>    >> 
>    >> I tried the following
>    >> 
>    >> ("Reply-to:" "Do not reply to this email <noreply@moodle.org>" "Moodle")
>    >> ("X-Mailer:" "PHPMailer [version Moodle 2007101506]" "Moodle")
>    >> ("Subject"  ".*\\[Using Moodle:\\].*" "Moodle")
>    >> ("Subject"  "\\[Using Moodle:\\].*" "Moodle")
>    >> ("In-reply-to:" "<moodlepost0@moodle.org>" "Moodle")
>
>    > (execute-kbd-macro (kbd
>    >   "C-h i d m gnus RET i nnmail-split-fancy-match-partial-words RET"))
>
> Well but this functionality seems not to exist for the 
> *nnimap* backend.

Did you try?  But first, do you understand now why your rules don't
match?

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnimap-split-fancy and regexp
  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>
  1 sibling, 0 replies; 6+ messages in thread
From: Uwe Brauer @ 2008-01-29 17:22 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

>>>>> "Johan" == Johan Bockgård <bojohan+news@dd.chalmers.se> writes:

   >> 
   >> Such that all this mails are moved to a Imap folder called Moodle
   >> 
   >> I tried the following
   >> 
   >> ("Reply-to:" "Do not reply to this email <noreply@moodle.org>" "Moodle")
   >> ("X-Mailer:" "PHPMailer [version Moodle 2007101506]" "Moodle")
   >> ("Subject"  ".*\\[Using Moodle:\\].*" "Moodle")
   >> ("Subject"  "\\[Using Moodle:\\].*" "Moodle")
   >> ("In-reply-to:" "<moodlepost0@moodle.org>" "Moodle")

   > (execute-kbd-macro (kbd
   >   "C-h i d m gnus RET i nnmail-split-fancy-match-partial-words RET"))

Well but this functionality seems not to exist for the 
*nnimap* backend.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 306 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnimap-split-fancy and regexp
       [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>
  0 siblings, 2 replies; 6+ messages in thread
From: Johan Bockgård @ 2008-01-27 14:30 UTC (permalink / raw)
  To: info-gnus-english

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

> Subject: Using Moodle: Re: Cannot get moodle to follow a symlink on	localhost
> In-reply-to: <moodlepost391135@moodle.org>
> X-Mailer: PHPMailer [version Moodle 2007101506]
>
>
> So what I want is to configure 
>  nnimap-split-rule  and nnimap-split-fancy respectively 
>
> Such that all this mails are moved to a Imap folder called Moodle
>
> I tried the following
>
>    ("Reply-to:" "Do not reply to this email <noreply@moodle.org>" "Moodle")
>    ("X-Mailer:" "PHPMailer [version Moodle 2007101506]" "Moodle")
>    ("Subject"  ".*\\[Using Moodle:\\].*" "Moodle")
>    ("Subject"  "\\[Using Moodle:\\].*" "Moodle")
>    ("In-reply-to:" "<moodlepost0@moodle.org>" "Moodle")

(execute-kbd-macro (kbd
  "C-h i d m gnus RET i nnmail-split-fancy-match-partial-words RET"))


-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-01 13:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22 14:10 nnimap-split-fancy and regexp Uwe Brauer
     [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 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).