From: Ronan KERYELL <Ronan.Keryell@lit.enstb.org>
Subject: splitting to different groups according spam level
Date: 26 Jul 2004 14:02:11 +0200 [thread overview]
Message-ID: <85vfgb3rjw.fsf@an-dro.lit.enstb.org> (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
reply other threads:[~2004-07-26 12:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=85vfgb3rjw.fsf@an-dro.lit.enstb.org \
--to=ronan.keryell@lit.enstb.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).