From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84824 Path: news.gmane.org!not-for-mail From: Christopher Culver Newsgroups: gmane.emacs.gnus.general Subject: Re: Hooks for moving an article and for setting it expirable Date: Wed, 27 Aug 2014 02:50:15 +0300 Message-ID: <8738ci95fs.fsf@aura.christopherculver.com> References: <87silaykb6.fsf@aura.christopherculver.com> <87mwbflp13.fsf@ericabrahamsen.net> <87fvguzxke.fsf@aura.christopherculver.com> <87d2byoe97.fsf@ericabrahamsen.net> <87zjf1j4dt.fsf@aura.christopherculver.com> <87mwb1lvrz.fsf@ericabrahamsen.net> <87r40dhl7u.fsf@aura.christopherculver.com> <87iolphg68.fsf@aura.christopherculver.com> <8738ctl1n8.fsf@ericabrahamsen.net> <87r40bdo2e.fsf@aura.christopherculver.com> <87a96uy3kt.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409097386 30520 80.91.229.3 (26 Aug 2014 23:56:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2014 23:56:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33067@lists.math.uh.edu Wed Aug 27 01:56:20 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 1XMQb2-0008WP-J1 for ding-account@gmane.org; Wed, 27 Aug 2014 01:56:16 +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 1XMQae-00055O-AL; Tue, 26 Aug 2014 18:55:52 -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 1XMQVT-00053v-1d for ding@lists.math.uh.edu; Tue, 26 Aug 2014 18:50:31 -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 1XMQVR-0003dQ-MZ for ding@lists.math.uh.edu; Tue, 26 Aug 2014 18:50:30 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XMQVQ-0006MJ-1K for ding@gnus.org; Wed, 27 Aug 2014 01:50:28 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XMQVP-00064O-R0 for ding@gnus.org; Wed, 27 Aug 2014 01:50:27 +0200 Original-Received: from 188.24.91.206 ([188.24.91.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2014 01:50:27 +0200 Original-Received: from crculver by 188.24.91.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2014 01:50:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 188.24.91.206 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:JH1/FnKVcWsNp03tt7ubznmoQOA= X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2398--17992h-0s--0d--H*u:Emacs, 0.000-300--2250h-0s--0d--H*u:Gnus, 0.000-300--2250h-0s--0d--H*UA:Gnus, 0.000-289--2167h-0s--0d--H*u:linux, 0.000-289--2167h-0s--0d--H*UA:linux Spam tokens: 0.992-24868--1226h-104931s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.992-24868--1226h-104931s--0d--H*RU:quimby.gnus.org, 0.991-23980--1187h-101202s--0d--HTo:D*gnus.org, 0.990-24605--1491h-104936s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.990-24605--1491h-104936s--0d--H*RT:80.91.231.51 Autolearn status: no -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.91.229.3 listed in list.dnswl.org] 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO 0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84824 Archived-At: Eric Abrahamsen writes: > Christopher Culver writes: >> Does Gnus have a way of accessing messages in other groups than what >> is visible in the summary buffer? Of course, the article number will >> change in the group to which the message is moved. Or is there a way >> to run the gnus-article-move-hook function *prior* to the moving of >> the message? > > There are several dynamic variables bound during > `gnus-summary-move-article' that you might be able to use. In the > message moving loop, the variables to-group and to-article *ought* to be > bound to the destination group, and the message's new article number in > that group. Maybe try using those variables in your hook function to > find the article at its new location? If the Gnus internals create a variable referring to the to-article, how do I access it? Attempting to do perform an action with a variable "to-article" produces the error: Symbol's value as variable is void: to-article So, the only variables I seem to be able to access are the ones passed by gnus-summary-article-move-hook to the hooked function: (action data-header from &optional to method). And here the value of "to" is only the destination group, not the destination message. Christopher Culver