From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66621 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Training dspam Date: Mon, 31 Mar 2008 09:16:59 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86od8vq8pw.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206972928 1243 80.91.229.12 (31 Mar 2008 14:15:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2008 14:15:28 +0000 (UTC) Cc: ding@gnus.org To: James Cloos Original-X-From: ding-owner+M15106@lists.math.uh.edu Mon Mar 31 16:15:58 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 1JgKnc-0006R9-4G for ding-account@gmane.org; Mon, 31 Mar 2008 16:15:48 +0200 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 1JgKmp-0002rY-On; Mon, 31 Mar 2008 09:14:59 -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 1JgKmo-0002rM-GD for ding@lists.math.uh.edu; Mon, 31 Mar 2008 09:14:58 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JgKmi-0008Oa-7p for ding@lists.math.uh.edu; Mon, 31 Mar 2008 09:14:58 -0500 Original-Received: from mail.blockstar.com ([170.224.69.95]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JgKmr-0004Ui-00 for ; Mon, 31 Mar 2008 16:15:01 +0200 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com (unknown [38.98.147.130]) by mail.blockstar.com (Postfix) with ESMTP id 276BA3F8FC5; Mon, 31 Mar 2008 07:20:30 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:080331:ding@gnus.org::9DKxlIUnLRH0usTA:00000fmE X-Hashcash: 1:20:080331:cloos@jhcloos.com::mZyChP4zh4lmbQkY:000000000000000000000000000000000000000000002ygz In-Reply-To: (James Cloos's message of "Sat, 29 Mar 2008 16:38:03 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66621 Archived-At: On Sat, 29 Mar 2008 16:38:03 -0400 James Cloos wrote: JC> The manual suggests a couple of (defun)s to report erroneously collated JC> spam and innocent mail. The synchronous nature of the recommended JC> functions has proven painfully slow to use on my aging laptop, so I came JC> up with these modified (defun)s. JC> Perhaps they will be useful to someone else. JC> (defun gnus-summary-dspam-report-spam () JC> "Submit spam to dspam, then mark it as expirable." JC> (interactive) JC> (gnus-summary-show-raw-article) JC> (gnus-eval-in-buffer-window gnus-article-buffer JC> (save-restriction JC> (widen) JC> (call-process-region (point-min) (point-max) "/usr/bin/dspam" JC> nil 0 nil "--mode=teft" "--user" (getenv "USER") JC> "--class=spam" "--source=error"))) JC> (gnus-summary-mark-as-expirable 1)) JC> (defun gnus-summary-dspam-report-innocent () JC> "Submit false-positive to dspam." JC> (interactive) JC> (gnus-summary-show-raw-article) JC> (gnus-eval-in-buffer-window gnus-article-buffer JC> (save-restriction JC> (widen) JC> (call-process-region (point-min) (point-max) "/usr/bin/dspam" JC> nil 0 nil "--mode=teft" "--user" (getenv "USER") JC> "--class=innocent" "--source=error")))) Thanks for the code. It looks useful, can it go into spam.el (do you have the papers)? I may use the same approach for all the reporting functions if it's faster than what's there already. I don't use dspam personally and need to review to make sure the code is consistent, but the papers come first... Ted