From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3990 Path: news.gmane.org!not-for-mail From: Ronan KERYELL Newsgroups: gmane.emacs.gnus.user Subject: splitting to different groups according spam level Date: 26 Jul 2004 14:02:11 +0200 Organization: ENST Bretagne Message-ID: <85vfgb3rjw.fsf@an-dro.lit.enstb.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138670009 21320 80.91.229.2 (31 Jan 2006 01:13:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:13:29 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:33:04 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!univ-lyon1.fr!enst-bretagne.fr!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: gavotte.enst-bretagne.fr Original-X-Trace: matell.enst-bretagne.fr 1090843319 8507 192.44.75.87 (26 Jul 2004 12:01:59 GMT) Original-X-Complaints-To: abuse@enst-bretagne.fr Original-NNTP-Posting-Date: 26 Jul 2004 12:01:59 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4131 Original-Lines: 36 X-Gnus-Article-Number: 4131 Tue Jan 17 17:33:04 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3990 Archived-At: 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