From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44069 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.gnus.general Subject: Re: Spam spam spam spam spam Date: Sat, 30 Mar 2002 17:34:43 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <87it7exbdo.fsf@enberg.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017506186 11991 127.0.0.1 (30 Mar 2002 16:36:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 30 Mar 2002 16:36:26 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16rLq6-00037I-00 for ; Sat, 30 Mar 2002 17:36:26 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16rLpX-0004Zz-00; Sat, 30 Mar 2002 10:35:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 30 Mar 2002 10:35:59 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA19406 for ; Sat, 30 Mar 2002 10:35:47 -0600 (CST) Original-Received: (qmail 730 invoked by alias); 30 Mar 2002 16:35:34 -0000 Original-Received: (qmail 725 invoked from network); 30 Mar 2002 16:35:33 -0000 Original-Received: from maild.telia.com (194.22.190.101) by gnus.org with SMTP; 30 Mar 2002 16:35:33 -0000 Original-Received: from d1o1112.telia.com (d1o1112.telia.com [213.67.192.241]) by maild.telia.com (8.11.6/8.11.6) with ESMTP id g2UGZT109378 for ; Sat, 30 Mar 2002 17:35:29 +0100 (CET) Original-Received: from rocksteady (h187n2fls32o1112.telia.com [213.65.65.187]) by d1o1112.telia.com (8.10.2/8.10.1) with ESMTP id g2UGZTg08296 for ; Sat, 30 Mar 2002 17:35:29 +0100 (CET) Original-Received: from henrik by rocksteady with local (Exim 3.35 #1 (Debian)) id 16rLoX-0001AA-00 for ; Sat, 30 Mar 2002 17:34:49 +0100 Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 30 Mar 2002 16:33:31 +0100") User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Original-Lines: 48 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44069 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44069 Lars Magne Ingebrigtsen writes: > When I woke up today, I had 75 new mail messages. Out of these, 72 > were spam. And all different. > > It's getting pretty annoying. > > Has anybody done any thinking about how to tie Gnus into the various > spam inhibitants that exist? I could easily see doing splitting based > on ordb/Vipul's Razor/Spamassassin/etc, and having single-stroke > commands in Gnus for reporting spam to the proper instances. Say, `y' > to send the spam for open relay checking, Razoring, assassination and > all the rest. Well, I cufted up this function for reporting to razor via spamassassin a few days ago, which I bound to $. I have even been a good boy and reported all my span since then. Now that I look at it it occurs to me that it should remove the various X-Gnus-* headers before reporting. (defun gnus-spamassassin-report () "Report message on current summary line to spamassassin." (interactive) (let* ((article (car (gnus-summary-work-articles 1))) (buffer (save-excursion (nnheader-set-temp-buffer " *spamassassin*"))) (header (gnus-summary-article-header article))) (if (not (vectorp header)) (message "%s is not a real article." article) (when (y-or-n-p "Really report this message to spamassasin? ") (save-window-excursion (let ((gnus-display-mime-function nil) (gnus-article-prepare-hook nil)) (gnus-summary-select-article t nil nil article))) (save-excursion (set-buffer buffer) (erase-buffer) (insert-buffer-substring gnus-original-article-buffer) (call-process-region (point-min) (point-max) "spamassassin" nil nil nil "-r")) (message "Message reported."))) (gnus-kill-buffer buffer) (gnus-summary-position-point) (gnus-set-mode-line 'summary))) -- I acted to show my love for Jodie Foster.