Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding <ding@gnus.org>
Subject: Re: new spam.el
Date: Mon, 30 Sep 2002 21:34:04 -0400	[thread overview]
Message-ID: <m3d6qvlz77.fsf@heechee.beld.net> (raw)
In-Reply-To: <yotlofaf8373.fsf@jpl.org> (Katsumi Yamaoka's message of "Tue, 01 Oct 2002 08:31:28 +0900")

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




      reply	other threads:[~2002-10-01  1:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 17:43 Ted Zlatanov
2002-09-30 23:31 ` Katsumi Yamaoka
2002-10-01  1:34   ` Ted Zlatanov [this message]

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=m3d6qvlz77.fsf@heechee.beld.net \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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).