From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14338 Path: news.gmane.org!not-for-mail From: Christopher Culver Newsgroups: gmane.emacs.gnus.user Subject: Extending the Gnus pyzor example Date: Sun, 19 Dec 2010 18:05:50 +0200 Organization: TeraNews.com Message-ID: <8762uprbmp.fsf@christopherculver.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1292776830 17585 80.91.229.12 (19 Dec 2010 16:40:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Dec 2010 16:40:30 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Dec 19 17:40:26 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUMIt-0002n6-N8 for gegu-info-gnus-english@m.gmane.org; Sun, 19 Dec 2010 17:40:22 +0100 Original-Received: from localhost ([127.0.0.1]:40929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUMIr-0002ES-M6 for gegu-info-gnus-english@m.gmane.org; Sun, 19 Dec 2010 11:40:09 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe01.iad.POSTED!665052d4!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:3IB43gM5Nb8zN91MJLZEyYusX54= Original-Lines: 22 Original-X-Complaints-To: abuse@teranews.com Original-NNTP-Posting-Date: Sun, 19 Dec 2010 16:05:53 UTC Original-Xref: usenet.stanford.edu gnu.emacs.gnus:85063 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14338 Archived-At: In the Gnus manual, there is a helpful example of how to report spam using Pyzor: (defun my-gnus-raze-spam () "Submit SPAM to Vipul's Razor, then mark it as expirable." (interactive) (gnus-summary-save-in-pipe "razor-report -f -d" t) (gnus-summary-mark-as-expirable 1)) Now, I'd like to change this so that it first moves mail to another group ("nnml:spam"), and *then* marks it expirable. But once mail has been moved to another group, how can I access it to mark it as expirable? If I try setting it as expirable with gnus-summary-mark-as-expirable first and then moving it, I get unintended results. The move function actually ends up moving the next e-mail in the group since setting mail as expirable automatically selects the next message. (I have a cron job that runs Spamassassin's Bayesian trainer on my inbox as ham and the nnml:spam group as spam, that's why I cannot leave spam messages within my inbox.)