From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47299 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Please test: agent downloading of all articles Date: Sat, 19 Oct 2002 21:58:43 +0200 Organization: University of Dortmund, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <84adla6w0c.fsf@crybaby.cs.uni-dortmund.de> References: <84k7kfddkh.fsf@crybaby.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035057534 11435 80.91.224.249 (19 Oct 2002 19:58:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 19:58:54 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182zkL-0002yI-00 for ; Sat, 19 Oct 2002 21:58:53 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 182zkq-0000TX-00; Sat, 19 Oct 2002 14:59:24 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 19 Oct 2002 15:00:08 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA13391 for ; Sat, 19 Oct 2002 14:59:55 -0500 (CDT) Original-Received: (qmail 12326 invoked by alias); 19 Oct 2002 19:58:54 -0000 Original-Received: (qmail 12321 invoked from network); 19 Oct 2002 19:58:54 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 19 Oct 2002 19:58:54 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 1830cV-0006Qk-00 for ; Sat, 19 Oct 2002 22:54:51 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 53 Original-NNTP-Posting-Host: p50876b41.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1035060891 22863 80.135.107.65 (19 Oct 2002 20:54:51 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Oct 2002 20:54:51 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:vQpO/eLmOgoNjeJf9ebrIGTwwkc= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47299 Barry Fishman writes: > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > >> I've committed something that is supposed to allow downloading of all >> articles, if the variable gnus-agent-consider-all-articles is set >> appropriately. >> >> I think it does not work, though :-( > > Would it not be better to take a more circumspect approach. > If I am reading the code right, presently, the default predicate is to > only consider short articles. One could do something like: > > (defun gnus-category-read () > "Read the category alist." > (setq gnus-category-alist > (or (gnus-agent-read-file > (nnheader-concat gnus-agent-directory "lib/categories")) > (list (list 'default (if gnus-agent-default-all-articles > 'true > 'short) nil nil))))) > > So that only the case where there isn't any categories file is effected. > Once people set up their own categories, they presumably know what > they are doing and another global flag will cause more problems than > it helps. Maybe you are misunderstanding? Before the change, the agent would NEVER download any articles that are marked as read. (Except if you explicitly marked it for download with `@'.) Now setting gnus-agent-consider-all-articles to nil means to keep the old behavior, and setting it to t means that the predicate is applied to both unread and read articles. I thought about changing the predicate syntax but I didn't like the alternatives that appeared to me. The best idea I had was to search for `read' or `unread' in the predicate. If either of these is present (or both are present), then the agent considers all articles. If none of them are present, then the agent considers the unread articles only. This means that (or short (not short)) is very different from (or read (not read)) which is counter-intuitive. But then, maybe *I'm* misunderstanding *you*. Am I? kai -- ~/.signature is: umop ap!sdn (Frank Nobis)