From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66604 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.gnus.general Subject: Training dspam Date: Sat, 29 Mar 2008 16:38:03 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206823194 22163 80.91.229.12 (29 Mar 2008 20:39:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 20:39:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15090@lists.math.uh.edu Sat Mar 29 21:40:24 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jfhqh-0007jk-Q4 for ding-account@gmane.org; Sat, 29 Mar 2008 21:40:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Jfhp9-0008CI-7F; Sat, 29 Mar 2008 15:38:47 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Jfhp8-0008CB-7o for ding@lists.math.uh.edu; Sat, 29 Mar 2008 15:38:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jfhp1-0004wx-Qc for ding@lists.math.uh.edu; Sat, 29 Mar 2008 15:38:45 -0500 Original-Received: from eagle.jhcloos.com ([207.210.242.212]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JfhpA-0006KW-00 for ; Sat, 29 Mar 2008 21:38:48 +0100 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id 60BEA401EE; Sat, 29 Mar 2008 20:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1206823117; bh=WwlefSRhm0kI5YEtGacGScG6iVqEwUig3PDw8YYWq Jg=; h=From:To:Date:Message-ID:MIME-Version:Content-Type; b=cTPHZsA kDsqTviBB7XBnltKjht0V2S5JNlApARTPU/x2bZE7Q/XtSDTr89cu1lD9ZraUQT338n nfvAfDmTM9MRvqpLmBSsvrLJZx+wQqIzu0fV3G1kvipXVD9q0TIcwvkzPKE66PxNVYH kM3KKM8zgUkFeT/U+s5aV3lAxQ0vjs= Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 9659021C012; Sat, 29 Mar 2008 20:38:26 +0000 (UTC) X-Hashcash: 1:23:080329:ding@gnus.org::W6u3z1lylqj3wwbA:000083Ae User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2007 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 33 X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66604 Archived-At: The manual suggests a couple of (defun)s to report erroneously collated spam and innocent mail. The synchronous nature of the recommended functions has proven painfully slow to use on my aging laptop, so I came up with these modified (defun)s. Perhaps they will be useful to someone else. (defun gnus-summary-dspam-report-spam () "Submit spam to dspam, then mark it as expirable." (interactive) (gnus-summary-show-raw-article) (gnus-eval-in-buffer-window gnus-article-buffer (save-restriction (widen) (call-process-region (point-min) (point-max) "/usr/bin/dspam" nil 0 nil "--mode=teft" "--user" (getenv "USER") "--class=spam" "--source=error"))) (gnus-summary-mark-as-expirable 1)) (defun gnus-summary-dspam-report-innocent () "Submit false-positive to dspam." (interactive) (gnus-summary-show-raw-article) (gnus-eval-in-buffer-window gnus-article-buffer (save-restriction (widen) (call-process-region (point-min) (point-max) "/usr/bin/dspam" nil 0 nil "--mode=teft" "--user" (getenv "USER") "--class=innocent" "--source=error")))) -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6