Gnus development mailing list
 help / color / mirror / Atom feed
* J S and the art of batch downloading (gnus-group-category)
@ 2000-12-17 20:44 Jari Aalto+mail.emacs
  2000-12-18 20:53 ` Alan Shutko
  2000-12-19  9:18 ` Kai Großjohann
  0 siblings, 2 replies; 4+ messages in thread
From: Jari Aalto+mail.emacs @ 2000-12-17 20:44 UTC (permalink / raw)



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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-12-19  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-17 20:44 J S and the art of batch downloading (gnus-group-category) Jari Aalto+mail.emacs
2000-12-18 20:53 ` Alan Shutko
2000-12-19  1:29   ` Harry Putnam
2000-12-19  9:18 ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).