From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40494 Path: main.gmane.org!not-for-mail From: Robert Epprecht Newsgroups: gmane.emacs.gnus.general Subject: Re: all.SCORE for agent categories Date: Fri, 23 Nov 2001 15:12:15 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <86itc1ink0.fsf@i2d.home> References: <86pu6curml.fsf@i2d.home> <861yiqq0sg.fsf@i2d.home> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176035 1190 80.91.224.250 (21 Oct 2002 04:53:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:53:55 +0000 (UTC) Return-Path: Original-Received: (qmail 14041 invoked from network); 23 Nov 2001 13:12:10 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 23 Nov 2001 13:12:10 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 167G6x-0006Jb-00; Fri, 23 Nov 2001 07:11:19 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 23 Nov 2001 07:11:03 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA07435 for ; Fri, 23 Nov 2001 07:10:52 -0600 (CST) Original-Received: (qmail 14019 invoked by alias); 23 Nov 2001 13:11:01 -0000 Original-Received: (qmail 14014 invoked from network); 23 Nov 2001 13:11:01 -0000 Original-Received: from unknown (HELO baps.zh.cybernet.ch) (212.90.198.162) by gnus.org with SMTP; 23 Nov 2001 13:11:01 -0000 Original-Received: (qmail 17194 invoked by alias); 23 Nov 2001 14:15:14 -0000 Original-Received: from diup-194-193.cybernet.ch (HELO i2d.home) (212.90.194.193) by baps.zh.cybernet.ch with SMTP; 23 Nov 2001 14:15:14 -0000 Original-Received: from dada by i2d.home with local (Exim 3.12 #1 (Debian)) id 167H3v-00006y-00; Fri, 23 Nov 2001 15:12:15 +0100 Original-To: ding@gnus.org In-Reply-To: (Harry Putnam's message of "Thu, 22 Nov 2001 09:05:42 -0800") Original-Lines: 50 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40494 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40494 Harry Putnam writes: > Now the part I'm not supposed to ask...... > > "For god sakes man... post it! ... They're human!" > (Bones ([Deforest Kelly] on star trek) I need a function to call on the first line of a new thread in summary buffer under the Agent which will raise the scoring of all follow up's (including misconfigured ones, where only subject matches) and toggles the download mark for all articles that are already there. It's a horrible hack, but 'It Works For Me' ;-) I think it depends on my summary line format which is the default Gnus came with. (I'd be happy if someone could do that better and post it here). I have in my .gnus.el (fset 'IrrtIsst "Irrt\C-mIsst\C-m") (defun my-mark-tread-for-downloading () " Marks a thread for downloading by the agent through scoring rules." (interactive) (message "Marking thread for download") (execute-kbd-macro 'IrrtIsst) ;; marking the first message for downloading (beginning-of-line) (if (looking-at "@") (gnus-agent-toggle-mark 1) (next-line 1) ) (while (progn ;; now looping over the thread (beginning-of-line) ;; checking for new thread (forward-char 3) (looking-at " ") ) (progn (beginning-of-line) (if (looking-at "@") (gnus-agent-toggle-mark 1) (next-line 1) ) ) ) ) (define-key gnus-summary-mode-map (kbd "i") 'my-mark-tread-for-downloading)