Gnus development mailing list
 help / color / mirror / Atom feed
* spam.el moves /all/ read articles to my spam group!
@ 2003-02-14  7:29 Andreas Fuchs
  2003-02-14 14:46 ` Ted Zlatanov
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Fuchs @ 2003-02-14  7:29 UTC (permalink / raw)


Ugh. Seems like I have managed to fsck up my spam.el setup again.

Repeatable behaviour:

* Enter group
* Read one article. Article has "R" mark. No spam marked articles in group.
* Exit group
* Messages buffer says:
  ,----
  | Exiting summary buffer and applying spam rules
  | Registering spam with bogofilter
  | Moving to nnml+private:spambox: (3325)...
  | Wrote /home/asf/Mail/spambox/18739
  `----
* Enter spam group. Previously read article is there. Yikes!

Badness. What would be the cause of that?

Probably relevant variables:

(setq spam-use-bogofilter t)
(setq spam-use-ifile nil)
(setq spam-use-blackholes nil)
(setq spam-use-dig nil)

(setq spam-split-group "spambox")

(setq spam-bogofilter-header "X-Bogosity")

(setq gnus-spam-newsgroup-contents '(("nnml\\+private:spambox"  gnus-group-spam-classification-spam)
				     ("nnml\\+private:.*" gnus-group-spam-classification-ham)))

(setq gnus-spam-process-newsgroups '(("nnml\\+private:.*" (gnus-group-spam-exit-processor-bogofilter
							   gnus-group-ham-exit-processor-bogofilter))))
(setq gnus-spam-process-destinations '(("nnml\\+private:.*" "nnml+private:spambox")))
(setq gnus-ham-process-destinations '(("nnml\\+private:spambox" "nnml+private:Mailbox.misc")))

;; from customize:

spam-ham-marks: (list 'gnus-del-mark 'gnus-read-mark 'gnus-killed-mark 'gnus-kill-file-mark 'gnus-low-score-mark)
spam-spam-marks: (list 'gnus-spam-mark)


Thanks,
-- 
Andreas Fuchs, <asf@acm.org>, asf@jabber.at, antifuchs




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

* Re: spam.el moves /all/ read articles to my spam group!
  2003-02-14  7:29 spam.el moves /all/ read articles to my spam group! Andreas Fuchs
@ 2003-02-14 14:46 ` Ted Zlatanov
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Zlatanov @ 2003-02-14 14:46 UTC (permalink / raw)


On Fri, 14 Feb 2003, asf@void.at wrote:
> Ugh. Seems like I have managed to fsck up my spam.el setup again.
> 
> Repeatable behaviour:
> 
> * Enter group Read one article. Article has "R" mark. No spam marked
> * articles in group.  Exit group Messages buffer says: ,----
>   | Exiting summary buffer and applying spam rules
>   | Registering spam with bogofilter
>   | Moving to nnml+private:spambox: (3325)...
>   | Wrote /home/asf/Mail/spambox/18739
>   `----
> * Enter spam group. Previously read article is there. Yikes!
> 
> Badness. What would be the cause of that?

I added code to move spam-marked articles, but "R" articles should not
be affected.

Can you replace spam-mark-spam-as-expired-and-move-routine with this:

(defun spam-mark-spam-as-expired-and-move-routine (&optional group)
  (let ((articles gnus-newsgroup-articles)
	article tomove)
    (dolist (article articles)
      (gnus-summary-remove-process-mark article)
      (when (eq (gnus-summary-article-mark article) gnus-spam-mark)
        (debug article (gnus-summary-article-mark article))   
	(gnus-summary-mark-article article gnus-expirable-mark)
	(push article tomove)))

    ;; now do the actual move
    (when (stringp group)
      (dolist (article tomove)
	(gnus-summary-set-process-mark article))
      (when tomove 
       (debug group)
       (gnus-summary-move-article nil group)))))

Just hit "c" when you get the debugger pop-up windows, and try to keep
track of those article numbers vs. the ones that were marked "R" in
the summary.  I need to find out if a) articles marked as read are
seen as spam somehow, and b) the articles are being moved by
spam-mark-spam-as-expired-and-move-routine.

I haven't observed this behavior here.

Thanks
Ted



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

end of thread, other threads:[~2003-02-14 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14  7:29 spam.el moves /all/ read articles to my spam group! Andreas Fuchs
2003-02-14 14:46 ` Ted Zlatanov

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