Gnus development mailing list
 help / color / mirror / Atom feed
* Spam does not move
@ 2004-05-17 12:47 Kohkichi Hosoda
  2004-05-17 15:17 ` Reiner Steib
  0 siblings, 1 reply; 24+ messages in thread
From: Kohkichi Hosoda @ 2004-05-17 12:47 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 24+ messages in thread
* Spam does not move
@ 2004-05-16 13:20 Kohkichi Hosoda
  0 siblings, 0 replies; 24+ messages in thread
From: Kohkichi Hosoda @ 2004-05-16 13:20 UTC (permalink / raw)
  Cc: semi-gnus-ja

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




^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2004-08-14 14:15 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-17 12:47 Spam does not move Kohkichi Hosoda
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

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