From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18772 Path: news.gmane.org!.POSTED!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.gnus.user Subject: Re: How to stop Agent from fetching headers of uninteresting Groups? Date: Thu, 07 Dec 2017 09:55:14 -0500 Message-ID: <87374mmvu5.fsf@moondust.localdomain> References: <878tf8j1hs.fsf@moondust.localdomain> <87indrsa3m.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1512658533 29440 195.159.176.226 (7 Dec 2017 14:55:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2017 14:55:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Dec 07 15:55:29 2017 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMxaC-0007UZ-L9 for gegu-info-gnus-english@m.gmane.org; Thu, 07 Dec 2017 15:55:28 +0100 Original-Received: from localhost ([::1]:32769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMxaJ-0002dd-Ro for gegu-info-gnus-english@m.gmane.org; Thu, 07 Dec 2017 09:55:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMxaH-0002dW-JZ for info-gnus-english@gnu.org; Thu, 07 Dec 2017 09:55:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMxaE-0002DK-Gt for info-gnus-english@gnu.org; Thu, 07 Dec 2017 09:55:33 -0500 Original-Received: from [195.159.176.226] (port=35608 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMxaD-0002B0-Sn for info-gnus-english@gnu.org; Thu, 07 Dec 2017 09:55:30 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eMxa2-0007Ev-7F for info-gnus-english@gnu.org; Thu, 07 Dec 2017 15:55:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:rB9p7G8jhQRq68hqwvDGxhQwo3k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 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: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18772 Archived-At: At 13:57 -0800 on Thursday 2017-11-30, Eric Abrahamsen wrote: > > nljlistbox2@gmail.com (N. Jackson) writes: >> >> How can I tell the Agent to not download even the headers for a >> group? >> >> It seems I need an Agent predicate that is more strongly >> negative than `false', something like `not-even-headers'. > > I don't think it's possible to do this presently -- looking at > `gnus-agent-fetch-group-1', the headers are indeed fetched > before the predicate is examined. In principle, however, there's > no reason why this wouldn't be possible: we could retrieve the > predicate higher up in the function, and ignore the group > altogether (unless some articles had been marked specifically > for downloading). > > I suggest using `gnus-bug' to report this and describe the > situation; hopefully someone will get to it! > > Eric Hi Eric, thank you for the response. Today I discovered `gnus-agent-handle-level' which I think I can use to do what I want. gnus-agent-handle-level is a variable defined in `gnus-agent.el'. Its value is 5 Documentation: Groups on levels higher than this variable will be ignored by the Agent. You can customize this variable. All my news groups are currently at a subscribedness level of 3 (the default), so I'll bump up the subscribedness of the groups I want the agent to retrieve anything for to level 2 and set `gnus-agent-handle-level' to 2 as well. This should solve my problem in a tidy way. In fact, this seems to be such a natural solution that I'm not sure that there is a need for a new feature, so I won't file a feature request unless this plan doesn't work out for some reason. N.