From: Xavier Maillard <zedek@gnu-rox.org>
Subject: Re: Spam/Ham training
Date: Wed, 03 Dec 2003 00:57:46 +0100 [thread overview]
Message-ID: <plop873cc2lqmd.fsf@gnu-rox.org> (raw)
In-Reply-To: <87d6b7oxrm.fsf@everett.mit.edu> (David Z. Maze's message of "Tue, 02 Dec 2003 13:55:09 -0500")
David Z Maze <dmaze@MIT.EDU> disait récemment que :
> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> I am considering adding spam *recognition* when you enter a group,
>> which would be useful for NNTP groups which have no splitting.
>> Unseen articles would be checked against a blacklist, for instance.
>
> Oh, I already have code to do that; I don't use it for nntp, but I do
> use it for another [MIT-local] read-only backend.
>
> ;; Look for spam in discuss groups.
> (defun dzm-gnus-find-spam ()
> (mapcar
> (lambda (article)
> (let ((split-group
> (with-temp-buffer
> (gnus-request-article-this-buffer article gnus-newsgroup-name)
> (spam-split))))
> (if (equal split-group spam-split-group)
> (gnus-summary-mark-article article gnus-spam-mark))))
> gnus-newsgroup-articles))
>
> (defun dzm-gnus-nndsc-spam ()
> (if (equal (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nndsc)
> (dzm-gnus-find-spam)))
>
> (add-hook 'gnus-summary-prepare-hook 'dzm-gnus-nndsc-spam)
> ...so the core of this, in dzm-gnus-find-spam, downloads each article
> in turn into a temporary buffer, calls spam-split, and sees if the
> result is spam-split-group; if so, it marks the message as spam. This
> seems to work pretty well in practice.
Thanx, I will try this solution as well.
/me is really fed up with the huge number of spam he receives those
days !
zeDek
next prev parent reply other threads:[~2003-12-02 23:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-30 20:18 Xavier Maillard
2003-12-01 20:33 ` Kai Grossjohann
2003-12-01 22:52 ` Xavier Maillard
2003-12-01 21:06 ` Ted Zlatanov
2003-12-01 22:53 ` Xavier Maillard
2003-12-02 1:45 ` Ted Zlatanov
2003-12-02 6:29 ` Xavier Maillard
2003-12-02 22:24 ` Ted Zlatanov
2003-12-02 23:56 ` Xavier Maillard
2003-12-03 17:36 ` Ted Zlatanov
2003-12-02 18:55 ` David Z Maze
2003-12-02 23:57 ` Xavier Maillard [this message]
2003-12-10 23:05 ` spam autodetection in NNTP and other backends (was: Spam/Ham training) Ted Zlatanov
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=plop873cc2lqmd.fsf@gnu-rox.org \
--to=zedek@gnu-rox.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).