From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33751 Path: main.gmane.org!not-for-mail From: posting-list@MailAndNews.com (Jari Aalto+mail.emacs) Newsgroups: gmane.emacs.gnus.general Subject: J S and the art of batch downloading (gnus-group-category) Date: 17 Dec 2000 22:44:25 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169797 26714 80.91.224.250 (21 Oct 2002 03:09:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:09:57 +0000 (UTC) Keywords: category,group,groups,gnus-category-group-cache,gnus,download,default,cat Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 9872BD049D for ; Mon, 18 Dec 2000 15:28:55 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB01873; Mon, 18 Dec 2000 14:28:54 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 18 Dec 2000 14:28:07 -0600 (CST) Original-Received: from epithumia.math.uh.edu (IDENT:root@epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA14943 for ; Mon, 18 Dec 2000 14:27:57 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.9.3/8.9.3) id OAA01997 for ding@hpc.uh.edu; Mon, 18 Dec 2000 14:28:24 -0600 Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA06456 for ; Sun, 17 Dec 2000 14:42:26 -0600 (CST) Original-Received: from koti.tpo.fi (mail.raketti.net [212.63.10.61]) by mailhost.sclp.com (Postfix) with ESMTP id 710F8D049D for ; Sun, 17 Dec 2000 15:42:45 -0500 (EST) Original-Received: from poboxes.com (ip10-038.dial.tpo.fi [212.246.177.38]) by koti.tpo.fi (8.9.0/8.9.0) with ESMTP id WAA15584 for ; Sun, 17 Dec 2000 22:42:43 +0200 (EET) Original-To: Gnus mailing list X-Sender-Info: Emacs tiny tools: http://poboxes.com/jari.aalto/emacs-elisp.html http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129 PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ Original-Lines: 56 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 (i386-*-windows98.1998) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33751 I don't quite understand how J S is supposed to work. I'm thinking of setting up a batch job that runs whenever I open the ISP connection, but I can't use the advertised batch download in the agent manual page, because it would read all 200 newsgroups i have in the view. I have defined 3 categories and none of those include the 200 newsgroups, not even the 'default if you look at it in category buffer with "g". I looked at the code that inside gnus-agent-fetch-group-1 there is call to gnus-group-category, which always return group 'default if there is no category defined for the group. I'm thinking that this in incorrect, because the group is not listed in 'default category's "g" list. (defun gnus-group-category (group) "Return the category GROUP belongs to." (unless gnus-category-group-cache (setq gnus-category-group-cache (gnus-make-hashtable 1000)) (let ((cs gnus-category-alist) groups cat) (while (setq cat (pop cs)) (setq groups (cadddr cat)) (while groups (gnus-sethash (pop groups) cat gnus-category-group-cache))))) (or (gnus-gethash group gnus-category-group-cache) >> (assq 'default gnus-category-alist))) I was hoping to define a category for "pure downloads" and instruct Gnus agent to use only that category when doing the J S, but is seems that Gnus does not work that way. Is the assumption correct? Presumption: Does Gnus download all (? huh ) newsgroups from the newsserver that I have subscribed (under gnus-agent-handle-level naturally) when doing the J S? And categories are just finer control for downloading and you can't specify which category you want to have respected when J S is requested? Hm, I find that I mostly want to update 10-20 groups for active download and just keep the "rest" for spare time reading. --> Is the solution to move the goups that I do not want the agent to download above the gnus-agent-handle-level? Not quite what I hoped to find from gnus, but it will do until I come up something other. Jari