Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@hpc.uh.edu
Subject: Re: new spam.el functionality
Date: Thu, 23 Jan 2003 23:33:14 -0500	[thread overview]
Message-ID: <m33cnjp3p1.fsf@heechee.beld.net> (raw)
In-Reply-To: <d9ptqncjt3.fsf@bose.cs.umn.edu> (Raja R Harinath's message of "Thu, 23 Jan 2003 21:23:36 -0600")

On Thu, 23 Jan 2003, harinath@cs.umn.edu wrote:
> Andreas Fuchs <asf@void.at> writes:

>> Hm, isn't whitelist and blacklist functionality a subset of the
>> regex matching functionality? Could these three be merged easily?
> 
> Also applies to spam-check-bogofilter-headers.

spam-check-bogofilter-headers uses (message-fetch-field
spam-bogofilter-header), then extracts the spamicity score.

spam-check-blacklist (whitelists are similar) uses
(message-fetch-field "from"), and stores its regular expressions in a
file.  It's intended for large numbers of entries in the blacklist.

spam-check-regex-headers does a re-search-forward call on the message.

I think those are three pretty different functions.  At best, you can
come up with an improved message-fetch-field.  But maybe I'm
misunderstanding.

I'm not sure what you and Andreas are proposing: a merging of the user
interface variables, or a simplification of the code?

I am against merging of the user interface variables.  Users want a
Bogofilter header check, not Lisp code.  I don't think anyone would
prefer to add "^X-Bogosity: Yes.*spamicity=\\([0-9]+\\)" to the
spam-spam-regex-headers, to setting spam-use-bogofilter-headers to t.
If they want, they can do it, but spam.el is intended to be simple and
easy to use and configure.  Does anyone disagree with this?

Simplification of the code is a good goal, but sometimes it's not
necessary.  Can you produce code or a patch that shows how you would
like to abstract spam-check-bogofilter-headers, spam-check-blacklist,
and spam-check-regex-headers into one function?

Ted

p.s. should spam-*-regex-headers be "regexp-headers" instead of
"regex-headers"?

p.p.s. should it be just "regexp" instead of "regexp-headers", since
it does a match on whatever is available in the article buffer while
splitting?  spam-check-regex-headers is intended for headers, but
could be used on the body.




      reply	other threads:[~2003-01-24  4:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-23 17:35 Ted Zlatanov
2003-01-23 22:52 ` Andreas Fuchs
2003-01-24  2:44   ` Ted Zlatanov
2003-01-24  3:23   ` Raja R Harinath
2003-01-24  4:33     ` 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=m33cnjp3p1.fsf@heechee.beld.net \
    --to=tzz@lifelogs.com \
    --cc=ding@hpc.uh.edu \
    /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).