Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* splitting to different groups according spam level
@ 2004-07-26 12:02 Ronan KERYELL
  0 siblings, 0 replies; only message in thread
From: Ronan KERYELL @ 2004-07-26 12:02 UTC (permalink / raw)


I use spamassassin and I have a working nnmail-split-fancy with a rule
("x-spam-flag" "YES" "mail.SPAM")

that triggers at spam level 5.

Now I would like to split lower spams according to their spam level that
also is represented by the star number in the x-spam-level header such as
:
X-Spam-Level: **


Unfortunately I have not succeeded to write a matching rule for that.
I've tried those mutating regex but none is working :-/
setq nnmail-split-fancy
 '(|
   ;; A message inherit the group of its parent if any :
   (: nnmail-split-fancy-with-parent)
   ;; The first match wins :
   (|
    ;; The SPAM from level 2 :
    ("x-spam-flag" "YES" "mail.SPAM") ;; this one works
    ("x-spam-level" "\\*\\*\\*\\*" "mail.SPAM.4")
    ("x-spam-level" "\*\*\*" "mail.SPAM.3")
    ("x-spam-level" "**" "mail.SPAM.2")
    ("x-spam-level" "\\\\*" "mail.SPAM.1")
[...]

Any idea ?

Thanks,
-- 
  Ronan KERYELL               |\/  Tel:    (+33|0) 2.29.00.14.15
  Labo Informatique & Télécom |/)  Fax:    (+33|0) 2.29.00.12.82
  ENST Bretagne, CS 83818     K    GSM:    (+33|0) 6.13.14.37.66
  F-29238 PLOUZANÉ CEDEX      |\   E-mail: rk@enstb.org
  FRANCE                      | \  http://www.lit.enstb.org/~keryell


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-26 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-26 12:02 splitting to different groups according spam level Ronan KERYELL

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