From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84758 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Hooks for moving an article and for setting it expirable Date: Fri, 08 Aug 2014 09:59:36 +0800 Message-ID: <87mwbflp13.fsf@ericabrahamsen.net> References: <87silaykb6.fsf@aura.christopherculver.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1407463531 17854 80.91.229.3 (8 Aug 2014 02:05:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 02:05:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33001@lists.math.uh.edu Fri Aug 08 04:05:22 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XFZYX-0007oJ-Kj for ding-account@gmane.org; Fri, 08 Aug 2014 04:05:21 +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 1XFZYM-0003Eh-Pi; Thu, 07 Aug 2014 21:05:10 -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 1XFZYL-0003EQ-GG for ding@lists.math.uh.edu; Thu, 07 Aug 2014 21:05:09 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XFZYK-0002hE-0g for ding@lists.math.uh.edu; Thu, 07 Aug 2014 21:05:09 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XFZYI-0000eA-MV for ding@gnus.org; Fri, 08 Aug 2014 04:05:06 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XFZYG-0007K2-7D for ding@gnus.org; Fri, 08 Aug 2014 04:05:04 +0200 Original-Received: from 111.199.148.47 ([111.199.148.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 04:05:04 +0200 Original-Received: from eric by 111.199.148.47 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 04:05:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.199.148.47 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:X/SToJyANweEuGRI4jqX9K+wruM= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84758 Archived-At: Christopher Culver writes: > I’d like to configure gnus so that when I move (with the keyboard > command B m) an e-mail out of my inbox into another mail group, it > automatically runs the article through a pipe (to train my spam > filter). Ditto for setting an message expirable (with the keyboard > command E). > > I’ve had a look at the "Function Hooks" chapter in the Gnus manual, but > I cannot find an appropriate hook for when an article is moved or when > it is marked expirable. Do such hooks exist? Adam's probably right, but to answer your question directly: gnus-summary-article-move-hook gnus-summary-article-expire-hook E