From: Kohkichi Hosoda <khosoda@venus.dti.ne.jp>
Subject: Spam does not move
Date: Mon, 17 May 2004 21:47:04 +0900 [thread overview]
Message-ID: <m3ekpji5kn.fsf@venus.dti.ne.jp> (raw)
Hi,
I recently decided to re-setup my spam-filtering. I wanted spam in a
ham group to move into spam group when I exit the ham group.
Therefore, my Group parameter is set as the following:
((spam-contents gnus-group-spam-classification-ham)
(spam-process
((spam spam-use-stat)
(ham spam-use-stat)))
(spam-process-destination "nnml:spam")
(spam-marks
(gnus-spam-mark)))
Everytime I find spam in a ham group, I mark it with M-d. Then it
will go into the spam group when I exit summary buffer of the ham
group, but it does not. I get messages as the followings:
Exiting summary buffer and applying spam rules
Registering 0 articles as spam using backend spam-use-stat
Marking spam as expired and moving it to (nnml:spam)
Marking spam as expired without moving it
Registering 0 articles as ham using backend spam-use-stat
However, the reality is that the spam resides in the ham group. It
is not even marked as expired. I probably have missed something, but
I'm not a Gnus master. I would appreciate your help in advance.
## The followings are my spam filtering in my .gnus.el according to
Mr. Koseki's page (it's Japanese).
http://cgi.netlaputa.ne.jp/~kose/diary/?200304a&to=200304091#200304091
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; spam filtering in my .gnus.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'spam)
(require 'spam-stat)
(spam-stat-load)
(setq spam-use-stat t)
;; Regular expression
(setq spam-use-regex-headers t)
(setq spam-regex-headers-spam
'("Subject:.*未承諾広告"))
;; decode
(setq nnmail-mail-splitting-decodes t)
;; Mailing list
(modify-syntax-entry ?\- "w" nnmail-split-fancy-syntax-table)
(setq nnmail-split-fancy-ML-alist
'(("x-ml-name" "\\b\\(\\w+\\)" "\\1")
("errors-to\\|sender" "owner-\\(\\w+\\)@.*" "\\1")
("sender" "\\b\\(\\w+\\)-\\(owner\\|admin\\)@.*" "\\1")
("mailing-list" "\\bcontact \\b\\(\\w+\\)-\\(help\\|owner\\)@.*" "\\1")))
;; parent
(setq nnmail-treat-duplicates 'warn)
(setq nnmail-cache-accepted-message-ids t)
;; group parameter & spam
(gnus-group-split-setup t "spam")
;; to myself
(setq nnmail-split-fancy-DM-alist
'(("subject" "Output from \"cron\" command" "cron")
(from "khosoda@[a-zA-Z.]+\\.jp" "kohkichi")
(to "khosoda@[a-zA-Z.]+\\.jp"
(| ("subject" "re:" "kohkichi")
("references" "@" "kohkichi")
; ("content-type" "multipart" "spam")
(from "[a-zA-Z]+\\.jp" "kohkichi")
"spam"))
"spam"))
;;
(setq nnmail-split-methods 'nnmail-split-fancy)
(setq gnus-group-split-updated-hook
(lambda ()
(setq nnmail-split-fancy
(append '(|)
;; (1) spam
'((: spam-split))
;; (2) mailing-list
nnmail-split-fancy-ML-alist
;; (3) parent
'((: nnmail-split-fancy-with-parent))
;; (4) Group parameter
(let ((lst (cdr nnmail-split-fancy))
first ret)
(while (listp (setq first (car lst)))
(setq ret (append (list first) ret))
(setq lst (cdr lst)))
ret)
;; (5) DM
nnmail-split-fancy-DM-alist))))
--
Kohkichi Hosoda
E-mail address: khosoda@venus.dti.ne.jp
http://www.venus.dti.ne.jp/~khosoda/Enlightenment.html
next reply other threads:[~2004-05-17 12:47 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-17 12:47 Kohkichi Hosoda [this message]
2004-05-17 15:17 ` Reiner Steib
2004-05-18 14:55 ` Kohkichi Hosoda
2004-05-18 15:40 ` Kai Grossjohann
2004-05-19 15:31 ` Kohkichi Hosoda
2004-05-19 18:07 ` Ted Zlatanov
2004-05-21 13:16 ` Kohkichi Hosoda
2004-05-22 14:11 ` Kohkichi Hosoda
2004-05-24 19:10 ` Ted Zlatanov
2004-05-28 17:00 ` Kohkichi Hosoda
2004-06-14 16:07 ` Ted Zlatanov
2004-06-18 16:00 ` Kohkichi Hosoda
2004-06-24 16:30 ` Ted Zlatanov
2004-06-26 14:05 ` Kohkichi Hosoda
2004-06-26 16:19 ` Kohkichi Hosoda
2004-06-29 18:16 ` Ted Zlatanov
2004-07-01 13:21 ` Kohkichi Hosoda
2004-07-01 16:11 ` Ted Zlatanov
2004-07-02 13:11 ` Kohkichi Hosoda
2004-07-16 17:00 ` Ted Zlatanov
2004-07-25 14:29 ` Kohkichi Hosoda
2004-07-27 16:46 ` Ted Zlatanov
2004-08-14 14:15 ` Kohkichi Hosoda
-- strict thread matches above, loose matches on Subject: below --
2004-05-16 13:20 Kohkichi Hosoda
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=m3ekpji5kn.fsf@venus.dti.ne.jp \
--to=khosoda@venus.dti.ne.jp \
/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).