Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Trouble with spam.el and ifile
Date: Wed, 08 Jan 2003 11:25:42 -0500	[thread overview]
Message-ID: <4n7kdfip6h.fsf@lockgroove.bwh.harvard.edu> (raw)
In-Reply-To: <y68n0mb39sn.fsf@multics.mit.edu> (David Z Maze's message of "Wed, 08 Jan 2003 11:07:04 -0500")

On Wed, 08 Jan 2003, dmaze@MIT.EDU wrote:
> By regex would be great, but I don't know which variable to set.
> (By regex is even better if spamness overrides hamness, since then
> "nnml:.*" can be ham.)  In particular,
> 
> (defun spam-group-ham-contents-p (group)
>   (if (stringp group)
>       (memq 'gnus-group-spam-classification-ham
>             (gnus-parameter-spam-contents group))
>     nil))
> 
> doesn't do any obvious testing of group against a regex;
> gnus-group-spam-contents-p at least tests if the group is a member
> of spam-junk-mailgroups.  *pause* *enlightenment* I want to set
> 
> (setq gnus-spam-newsgroup-contents
>   '(("nnml:.*"             gnus-group-spam-classification-ham)
>     ("nnml:mail.misc.spam" gnus-group-spam-classification-spam)))
> 
> since it looks like the magic in gnus-define-group-parameter picks
> the last matching regexp from the alist.  

I just use the gnus-define-group-parameter magic, it seems to do the
right thing.  But did you try setting the group spam-contents
parameter with `G c' instead of gnus-spam-newsgroup-contents?  That
should override the global setting.

> Probably (gnus)Filtering Spam Using spam.el should talk about this;
> now that I think I have some understanding, would you like me to
> write up some text?

Yes, if you could look it over for inaccuracies, especially
considering the new ifile modifications and the new behavior with
spam- and ham-moving, I would greatly appreciate it.

Ted



  parent reply	other threads:[~2003-01-08 16:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07 16:52 David Z Maze
2003-01-07 19:47 ` Ted Zlatanov
2003-01-07 21:05   ` David Z Maze
2003-01-07 22:07     ` Ted Zlatanov
2003-01-07 22:32       ` David Z Maze
2003-01-07 22:42         ` David Z Maze
2003-01-08  4:55           ` Ted Zlatanov
2003-01-08 15:11         ` Ted Zlatanov
2003-01-08 16:07           ` David Z Maze
2003-01-08 16:15             ` David Z Maze
2003-01-08 16:25             ` Ted Zlatanov [this message]
2003-01-08 16:18           ` 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=4n7kdfip6h.fsf@lockgroove.bwh.harvard.edu \
    --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).