[Top][All Lists]

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

splitting to different groups according spam level

From: Ronan KERYELL
Subject: splitting to different groups according spam level
Date: 26 Jul 2004 14:02:11 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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 ?

  Ronan KERYELL               |\/  Tel:    (+33|0)
  Labo Informatique & Télécom |/)  Fax:    (+33|0)
  ENST Bretagne, CS 83818     K    GSM:    (+33|0)
  F-29238 PLOUZANÉ CEDEX      |\   E-mail: address@hidden
  FRANCE                      | \

reply via email to

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