Gnus development mailing list
 help / color / mirror / Atom feed
* new spam.el
@ 2002-09-30 17:43 Ted Zlatanov
  2002-09-30 23:31 ` Katsumi Yamaoka
  0 siblings, 1 reply; 3+ messages in thread
From: Ted Zlatanov @ 2002-09-30 17:43 UTC (permalink / raw)


I have put a new version of spam.el in the CVS repository, and updated
the ChangeLog.  All the credit should go to François Pinard, who did
the hard work of putting together all the code.  The documentation is
not ready, but I think the comments in the code will be sufficient to
get people started (and those were written by François as well).  Do
let me know if you have any questions, and I'll do my best to answer.

There's a few FIXMEs in the code that I'll try to resolve soon (but
feel free to provide patches if you like).  The key bindings are not
perfect, the blackhole check is still broken (as I reported to the
ding list some time ago), but bogofilter and black/whitelists should
work right away.

The spam-split function is the main point of interest for this
release: when added to your nnimap/nnmail fancy split, it will return
either nil or the value of the spam-split-group variable, which is
"spam" by default.  The spam detection is done with several variables
you can customize.

The default spam-split-group value may be a problem if your primary
backend is nntp, for instance (since the "spam" group won't be
writeable), so make sure to customize that.  See the comments for more
details.

Again, feel free to ask any questions or make any suggestions.

Ted




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

* Re: new spam.el
  2002-09-30 17:43 new spam.el Ted Zlatanov
@ 2002-09-30 23:31 ` Katsumi Yamaoka
  2002-10-01  1:34   ` Ted Zlatanov
  0 siblings, 1 reply; 3+ messages in thread
From: Katsumi Yamaoka @ 2002-09-30 23:31 UTC (permalink / raw)


Hi,

>>>>> In <m3fzvrpe3w.fsf@heechee.beld.net>
>>>>>	Ted Zlatanov <tzz@lifelogs.com> wrote:

> I have put a new version of spam.el in the CVS repository, and updated
> the ChangeLog...

I got the following error while compiling new spam.el:

Compiling /Work/gnus/lisp/spam.el...
While compiling spam-check-bbdb in file /Work/gnus/lisp/spam.el:
  !! error (("net must be atomic"))

It is said by the macro `bbdb-search' which requires that the
4th argument is a string or a symbol.  So, I think the function
`spam-check-bbdb' can be modified as follows:

(defun spam-check-bbdb ()
  "We want people, who are in bbdb not to be splitted to spam"
  (let ((who (message-fetch-field "from")))
    (when who
      (setq who (regexp-quote (cadr (gnus-extract-address-components who))))
      (bbdb-search (bbdb-records) nil nil who))))
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



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

* Re: new spam.el
  2002-09-30 23:31 ` Katsumi Yamaoka
@ 2002-10-01  1:34   ` Ted Zlatanov
  0 siblings, 0 replies; 3+ messages in thread
From: Ted Zlatanov @ 2002-10-01  1:34 UTC (permalink / raw)
  Cc: ding

On Tue, 01 Oct 2002, yamaoka@jpl.org wrote:
> It is said by the macro `bbdb-search' which requires that the
> 4th argument is a string or a symbol.  So, I think the function
> `spam-check-bbdb' can be modified as follows:
> 
> (defun spam-check-bbdb ()
>   "We want people, who are in bbdb not to be splitted to spam"
>   (let ((who (message-fetch-field "from")))
>     (when who
>       (setq who (regexp-quote (cadr (gnus-extract-address-components who)))) 
>       (bbdb-search (bbdb-records) nil nil who))))

I added the change, with one more modification (we want to return the
value of spam-split-group, it's not t or nil).  Thank you.

I also fixed spam-check-whitelist, which also returned t or nil and
should return spam-split-group or nil.

I'm doing this to be consistent with Francois' code, which let each
checking function return a string (spam-split-group) or nil, rather
than have the spam-split function aggregate all the return values of t
or nil.

Ted




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

end of thread, other threads:[~2002-10-01  1:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 17:43 new spam.el Ted Zlatanov
2002-09-30 23:31 ` Katsumi Yamaoka
2002-10-01  1:34   ` 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).