Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
Subject: Re: CRM114 Mailfilter and spam.el
Date: Thu, 20 May 2004 21:19:14 +0200	[thread overview]
Message-ID: <87vfiq6h59.fsf@koldfront.dk> (raw)
In-Reply-To: <4ny8nn0wpu.fsf@lifelogs.com>

On 20 May 2004 14:39:25 -0400, Ted wrote:

> Adam, I comitted your patch, assuming your papers are on file (it's
> been a while since we discussed this).

Alas, they're not, yet. I've done almost nothing in elisp before, and
only sent an email to FSF a couple of days ago when Lars posted the
procedure publicly.

(I think the FSF is hiding how to do this quite aptly; I did go and
look for it at their website a while back without finding any
instructions. Maybe I was just being stupid.)

> The two spam.el hunks below didn't belong in the patch, I think, and
> I didn't consider them carefully so let me know if I should.

Please do consider them - or just say why you think they shouldn't go
in.

The first patch changes the behaviour as the comment change says -
instead of only moving ham articles out of spam-groups, it moves ham
articles out of non-ham-groups.

This makes sense in my setup, because I do not want to declare my
nnml:spam-group as spam (I do not want spam marked as expired
automatically), so I leave it as unclassified (so it's non-ham, but
not spam).

(Oh, the following call to gnus-message should be modified as well, to
reflect the change, if you deem it acceptable).

Would it break anyone elses setup?

When I mark an article as ham in an unclassified group, what would I
be trying to tell Gnus/spam.el if not "please move it to a/the
ham-group"?

(This is not a retorical question; I know people have very different
ideas of how they want to handle their mix of ham'n'spam.)

@@ -776,8 +838,8 @@
       (spam-ham-copy-routine
        (gnus-parameter-ham-process-destination gnus-newsgroup-name)))
 
-    ;; now move all ham articles out of spam groups
-    (when (spam-group-spam-contents-p gnus-newsgroup-name)
+    ;; now move all ham articles out of non-ham groups
+    (when (not (spam-group-ham-contents-p gnus-newsgroup-name))
       (gnus-message 5 "Moving ham messages from spam group")
       (spam-ham-move-routine
        (gnus-parameter-ham-process-destination gnus-newsgroup-name))))

spam.el doesn't work for me without the second, following, patch,
which I basically thought was a typo-correction; alas I'm only
starting to learn elisp, so I may very well be wrong.

@@ -859,7 +921,7 @@
 	 (gnus-check-backend-function
 	  'request-move-article gnus-newsgroup-name))
 	(respool-method (gnus-find-method-for-group gnus-newsgroup-name))
-	article mark todo deletep respool)
+	article mark deletep respool)
 
     (when (member 'respool groups)
       (setq respool t)			; boolean for later

> Also, I added a scoring function for CRM114 to spam-generic-score
> and fixed a few small problems.

Cool!


  Best regards,

-- 
 "Some people like cupcakes better.                           Adam Sjøgren
  I for one care less for them!"                         asjo@koldfront.dk




  reply	other threads:[~2004-05-20 19:19 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 20:54 Adam Sjøgren
2004-04-02  6:22 ` Kai Grossjohann
2004-04-02 16:04   ` Adam Sjøgren
2004-04-03 13:28     ` Kai Grossjohann
2004-04-03 14:01       ` Adam Sjøgren
2004-04-05 13:21         ` Ted Zlatanov
2004-04-02 16:06   ` Adam Sjøgren
2004-04-02 17:14     ` Ted Zlatanov
2004-04-03 21:10       ` Adam Sjøgren
2004-04-03 21:19         ` Adam Sjøgren
2004-04-03 21:48           ` Adam Sjøgren
2004-04-03 21:58             ` Adam Sjøgren
2004-04-03 13:29     ` Kai Grossjohann
2004-04-03 13:49       ` Adam Sjøgren
2004-04-06  8:12         ` Kai Grossjohann
2004-04-06 21:40           ` Adam Sjøgren
2004-04-02 16:10   ` Jody Klymak
2004-04-02 17:07   ` Ted Zlatanov
2004-04-02 17:06 ` Ted Zlatanov
2004-04-02 17:26   ` Adam Sjøgren
2004-04-02 17:44     ` Ted Zlatanov
2004-04-03 14:22       ` Adam Sjøgren
2004-04-03 14:24         ` Adam Sjøgren
2004-04-03 23:59 ` Adam Sjøgren
2004-04-04  1:59   ` Jesper Harder
2004-04-04 13:07     ` Adam Sjøgren
2004-04-05 13:24       ` Ted Zlatanov
2004-04-05 15:50         ` Jesper Harder
2004-04-06 21:36       ` Adam Sjøgren
2004-05-20 18:39         ` Ted Zlatanov
2004-05-20 19:19           ` Adam Sjøgren [this message]
2004-05-22 23:44             ` Lars Magne Ingebrigtsen
2004-05-23 13:44               ` Adam Sjøgren
2004-05-26 16:23             ` Ted Zlatanov
2004-05-26 20:30               ` Adam Sjøgren

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=87vfiq6h59.fsf@koldfront.dk \
    --to=asjo@koldfront.dk \
    /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).