From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65830 Path: news.gmane.org!not-for-mail From: Dave Goldberg Newsgroups: gmane.emacs.gnus.general Subject: Re: scan for author and take action Date: Sat, 01 Dec 2007 11:56:54 -0500 Message-ID: <8463zifj55.fsf@incoming.verizon.net> References: <87abovpbgf.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196528270 13267 80.91.229.12 (1 Dec 2007 16:57:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 16:57:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14325@lists.math.uh.edu Sat Dec 01 17:57:58 2007 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 1IyVfA-0006ij-TX for ding-account@gmane.org; Sat, 01 Dec 2007 17:57:57 +0100 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 1IyVdy-0003x2-BQ; Sat, 01 Dec 2007 10:56:42 -0600 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 1IyVdw-0003wf-Nv for ding@lists.math.uh.edu; Sat, 01 Dec 2007 10:56:40 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IyVdq-0002qg-TV for ding@lists.math.uh.edu; Sat, 01 Dec 2007 10:56:40 -0600 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IyVdn-0005tg-00 for ; Sat, 01 Dec 2007 17:56:31 +0100 Original-Received: from dsg-laptop.verizon.net ([69.203.84.65]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JSD00MM9QYTGHM2@vms173003.mailsrvcs.net> for ding@gnus.org; Sat, 01 Dec 2007 10:54:32 -0600 (CST) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: <87abovpbgf.fsf@newsguy.com> (reader@newsguy.com's message of "Fri, 30 Nov 2007 17:20:32 -0600") User-Agent: Gnus/5.110007 (No Gnus v0.7) XEmacs/21.4.20 (linux) X-Spam-Score: -0.6 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65830 Archived-At: Could you please clarify what you're trying to do? Do you want to run something after you've entered the group without having to manually step through the process? If so, then / a followed by M-P-b (gnus-uu-mark-buffer) and then M-& and your command could be put into a macro or otherwise turned into an interactive function. If, on the other hand, you're trying to do this on group entry, then I don't know the best way to do it, but one thing that will work is to create your own sort function that runs your author-specific function as a side effect of sorting. I have done something like this for an imap group into which I sieve all messages directed at my group's trouble ticket system. Sometimes people cc me directly as well as sending to the system address so I end up with a "duplicate" message that doesn't have the proper subject tag so I want to ensure I don't end up replying on that one or I'll generate a new ticket number (at best) or lose the thread (at worst). So I wrote a sort function that parses the ticket tag and sorts by the ticket number, and also scores down any message not tagged by the system . So in the group parameters for that group I have (from memory as I'm not at work and don't have access right now so may not be syntactically correct): (gnus-article-sort-functions 'dsg-sort-by-ticket-number) And in .gnus, I copied gnus-article-sort-by-subject to dsg-sort-by-ticket-number and modified it to my needs. -- Dave Goldberg david.goldberg6@verizon.net