From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67164 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-save-in-pipe does not pipe raw article Date: Sat, 19 Jul 2008 20:19:43 +0900 Message-ID: References: <87mykes2g8.fsf@newton.gmurray.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1216466498 32716 80.91.229.12 (19 Jul 2008 11:21:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 11:21:38 +0000 (UTC) Cc: ding@gnus.org To: Graham Murray Original-X-From: ding-owner+M15623@lists.math.uh.edu Sat Jul 19 13:22:27 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 1KKAW2-00013i-J8 for ding-account@gmane.org; Sat, 19 Jul 2008 13:22:18 +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 1KKAUR-0001U9-V6; Sat, 19 Jul 2008 06:20:40 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KKAUQ-0001Tw-6R for ding@lists.math.uh.edu; Sat, 19 Jul 2008 06:20:38 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KKAUM-0003we-CL for ding@lists.math.uh.edu; Sat, 19 Jul 2008 06:20:38 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KKAUh-0004xD-00 for ; Sat, 19 Jul 2008 13:20:55 +0200 Original-Received: from softbank218118002103.bbtec.net ([218.118.2.103]:64855 helo=) by washington.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KKATn-0008FN-7j; Sat, 19 Jul 2008 06:19:59 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:QUbBNR4SDf/Q03bTgpJ7gZ8Yn30= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67164 Archived-At: --=-=-= >>>>> In <87mykes2g8.fsf@newton.gmurray.org.uk> >>>>> Graham Murray wrote: > Until recently, following the example in the documentation I was able to > "report" spam articles using spamassassin using the function > (defun my-gnus-raze-spam () > "Invoke SpamAssassin reporting , then mark it as expirable." > (interactive) > (gnus-summary-show-raw-article) > (gnus-summary-save-in-pipe "spamassassin -r") > (gnus-summary-mark-as-expirable 1)) > Now using the latest cvs of ngnus, the raw article is not sent to the > pipe. Try this instead: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (defun my-gnus-raze-spam () "Invoke SpamAssassin reporting , then mark it as expirable." (interactive) (let ((decode (get 'gnus-summary-save-in-pipe :decode))) (put 'gnus-summary-save-in-pipe :decode nil) (unwind-protect (gnus-summary-save-in-pipe "spamassassin -r") (put 'gnus-summary-save-in-pipe :decode decode))) (gnus-summary-mark-as-expirable 1)) --=-=-= Content-Disposition: inline ;; cf. (info "(gnus)Saving Articles") Or if you use `gnus-summary-save-in-pipe' for only this feature simply you can do as follows: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (eval-after-load "gnus-art" '(put 'gnus-summary-save-in-pipe :decode nil)) (defun my-gnus-raze-spam () "Invoke SpamAssassin reporting , then mark it as expirable." (interactive) (gnus-summary-save-in-pipe "spamassassin -r") (gnus-summary-mark-as-expirable 1)) --=-=-= Content-Disposition: inline --=-=-=--