From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18769 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.user Subject: Re: How to stop Agent from fetching headers of uninteresting Groups? Date: Thu, 30 Nov 2017 13:57:49 -0800 Message-ID: <87indrsa3m.fsf@ericabrahamsen.net> References: <878tf8j1hs.fsf@moondust.localdomain> 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 1512162010 15888 195.159.176.226 (1 Dec 2017 21:00:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 21:00:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 01 22:00:05 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 1eKsPj-0003kr-Uc for gegu-info-gnus-english@m.gmane.org; Fri, 01 Dec 2017 22:00:04 +0100 Original-Received: from localhost ([::1]:32955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKsPr-00040Z-BA for gegu-info-gnus-english@m.gmane.org; Fri, 01 Dec 2017 16:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKsDg-0002Jn-El for info-gnus-english@gnu.org; Fri, 01 Dec 2017 15:47:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKsDd-0000Cp-DI for info-gnus-english@gnu.org; Fri, 01 Dec 2017 15:47:36 -0500 Original-Received: from [195.159.176.226] (port=32866 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKsDd-0000Az-6B for info-gnus-english@gnu.org; Fri, 01 Dec 2017 15:47:33 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eKWrv-00007t-Gw for info-gnus-english@gnu.org; Thu, 30 Nov 2017 22:59:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:/Cfpq42f1pA07JEz3m51u2rPwdo= 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:18769 Archived-At: nljlistbox2@gmail.com (N. Jackson) writes: > I use the Agent for reading news offline (because I don't have an > Internet connection for many hours of the day). I only read a > handful of news groups offline, but the Agent downloads the > headers for every single group on my agentised servers. This takes > about fifteen or twenty minutes every time I do `J s' because I > have very many groups on those servers (most of which I only read > about once a year). Downloading the actual news for the groups I'm > interested in reading offline only takes about a minute, so it > seems insane to download all these headers that I don't want. > > How can I tell the Agent to not download even the headers for a > group? > > Currently I have one Agent category for each of my agentised > groups. That is the "default" category and it is set to 0 (by the > Agent when it first set itself up). For the groups I want to read > offline I have group parameters that tell the Agent to retrieve > all messages (I have a `true' predicate). > > It seems I need an Agent predicate that is more strongly negative > than `false', something like `not-even-headers'. > > I suppose I might be asking the wrong question, since the Agent > predicates are to tell the Agent which articles to get, it must > have already retrieved the unwanted headers before it even starts > applying the predicates. So I need a way of telling the Agent at a > higher level not to even get the headers. But I don't see anything > useful in the documentation. > > What am I missing? 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