From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36240 Path: main.gmane.org!not-for-mail From: Robert Epprecht Newsgroups: gmane.emacs.gnus.general Subject: subscribe to new group with agent Date: 16 May 2001 16:52:27 +0200 Message-ID: <86k83hxs5w.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 1035171860 7532 80.91.224.250 (21 Oct 2002 03:44:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:44:20 +0000 (UTC) Cc: p_oster_2000@yahoo.com Return-Path: Original-Received: (qmail 1222 invoked by alias); 16 May 2001 15:05:18 -0000 Original-Received: (qmail 1217 invoked from network); 16 May 2001 15:05:18 -0000 Original-Received: from mail.sunweb.ch (212.90.199.3) by gnus.org with SMTP; 16 May 2001 15:05:18 -0000 Original-Received: from i2d.home [212.90.194.29] by mail.sunweb.ch with ESMTP (SMTPD32-5.05) id A73357CF01EC; Wed, 16 May 2001 17:05:23 +0200 Original-Received: from dada by i2d.home with local (Exim 3.12 #1 (Debian)) id 1502f5-00007E-00; Wed, 16 May 2001 16:52:27 +0200 Original-To: ding@gnus.org User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Original-Lines: 39 Xref: main.gmane.org gmane.emacs.gnus.general:36240 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36240 In April there was a thread in gnu.emacs.gnus (same subject) about subscribing to huge newsgroups with the Agent. Sometimes you might want to bypass the download of all the headers if you intend to catch up after that anyway. In "Poster 2000" sent a piece of code which let's you limit the download to a number of the most recent messages. As I have found this code very helpful I asked him for permission to send his code here. Here it is: /----------------------------------------------------------------- | | I have had this problem with a couple of large groups I was reading | once. I came up with the following which seems to work sometimes. | | (defun gnus-catchup-limited (offset) | "catches up to N in the past" | (interactive "p") | (setq NAME (gnus-group-group-name)) | (save-excursion | (gnus-group-read-group 1 t NAME) | (setq END (- gnus-newsgroup-end offset)) | (setq START (cdar(nth 2 (gnus-get-info NAME)))) | (gnus-summary-exit) | (setq ITEMS nil) | (while (>= END START) | (setq ITEMS (cons END ITEMS)) | (setq END (- END 1))) | (gnus-group-make-articles-read NAME ITEMS))) | | It catches up whatever group is under point to the last N article | numbers or it is supposed to. It seems to fail if it can not fetch the | first, or is it last article ie C-u 1 RET fails. | \----------------------------------------------------------------- Couldn't something like this be included in Gnus? Robert Epprecht