Gnus development mailing list
 help / color / mirror / Atom feed
From: Mick Gower <mick@dexter.clara.co.uk>
Subject: gnus-scum-expunge funtion nolonger works
Date: 29 Sep 1999 19:14:21 +0100	[thread overview]
Message-ID: <m3hfkdio02.fsf@dexter.clara.co.uk> (raw)


I, in common with a lot of people, use the gnus-scum-expunge function as 
quoted below, but since upgrading to pgnus it no longer works, this is
the error message.

Recent minibuffer messages (most recent first):

Invalid function: (macro . #<compiled-function (from "gnus-sum.elc") (&optional number) "...(15)" [gnus-data-header gnus-data-find number (gnus-summary-article-number)] 3 ("/usr/local/share/emacs/site-lisp/gnus-sum.elc" . 76755)>)
Generating summary...done
Generating summary...
Scoring...done
Scoring...
Fetching headers for uk.media.tv.sky...done
Fetching headers for uk.media.tv.sky...

Any ideas why and how to fix

TIA.

;;------------------------- gnus-scum-expunge ----------------
;; quick nuke people :-)

(global-set-key "\C-cx" 'gnus-scum-expunge) ; see below gnus

  ;; This function should be called from the summary buffer with point
  ;; on the article to nuke.  It puts a rule in ~/News/Scores/SMEGHEADS to lower
  ;; scores of author
  ;; It needs an entry in all.SCORE of (files "~/News/Scores/SMEGHEADS").

  ;; I changed it to only add the from line.
(defun gnus-scum-expunge ()
  ;;  "Remove this spammer from existance as much as possible."
  (interactive)
  (let* ((hdr (gnus-summary-article-header))
         (subj (aref hdr 1))
         (auth (aref hdr 2))
         (artid (aref hdr 4))
         (atsign (string-match "@" artid))
         (host (substring artid (+ atsign 1) (- (length artid) 1)))
         (oldscfile gnus-current-score-file))
    ;; Change to our spammer score file
    (gnus-score-change-score-file "SMEGHEADS")
    ;; Add our horrible spammer scores
    (gnus-summary-score-entry "Subject" subj 'S' -5 nil)
    (gnus-summary-score-entry "From" auth 'S' -10000 nil)
;;    (gnus-summary-score-entry "Message-ID" host 'S' -5 nil) ; mild
    ;; Change back to old current score file
    (gnus-score-change-score-file oldscfile)
    (gnus-score-save)))
;;;
;
-- 
Mick Gower


             reply	other threads:[~1999-09-29 18:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-29 18:14 Mick Gower [this message]
1999-11-06  2:01 ` Lars Magne Ingebrigtsen
1999-11-11 19:28   ` Mick Gower

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=m3hfkdio02.fsf@dexter.clara.co.uk \
    --to=mick@dexter.clara.co.uk \
    /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).