From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68044 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.gnus.general Subject: Re: Agent fetch for a particular server? Date: Sat, 03 Jan 2009 02:44:55 +0800 Organization: the Church of Emacs Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230946034 22667 80.91.229.12 (3 Jan 2009 01:27:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 01:27:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16489@lists.math.uh.edu Sat Jan 03 02:28:21 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LIvJD-0003HM-HG for ding-account@gmane.org; Sat, 03 Jan 2009 02:28:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LIvHs-0008EL-F3; Fri, 02 Jan 2009 19:26:48 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LIvHq-0008Du-8J for ding@lists.math.uh.edu; Fri, 02 Jan 2009 19:26:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LIvHl-0001ba-Bm for ding@lists.math.uh.edu; Fri, 02 Jan 2009 19:26:46 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LIvI1-00082j-00 for ; Sat, 03 Jan 2009 02:26:57 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LIvHi-0006gv-Ob for ding@gnus.org; Sat, 03 Jan 2009 01:26:38 +0000 Original-Received: from 125.33.196.229 ([125.33.196.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Jan 2009 01:26:38 +0000 Original-Received: from william.xwl by 125.33.196.229 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Jan 2009 01:26:38 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 125.33.196.229 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) Cancel-Lock: sha1:uCEjjESn+MdGQsAEeiqg3yhOMhQ= X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68044 Archived-At: Steinar Bang writes: >>>>>> William Xu : > >> I think you can set gnus-select-method to that particular server when >> running agent, use something like: > >> ,---- >> | (if noninteractive >> | (setq gnus-select-method '((nnimap "imap.foo.bar"))) >> | ;; else... >> | ) >> `---- > > Hm... this is a way for batch fetching of articles from the imap server > into the Agent cache? Oh, yes. I always run the Agent as a cron job at background. And using the following gnus deamon to read the cache: ,---- | (defun xwl-gnus-group-get-new-news () | (interactive) | (if gnus-plugged | (gnus-group-get-new-news 3) | ;; Read agent cache. | (gnus-read-active-file) | (gnus-get-unread-articles) | (gnus-group-list-groups))) `---- Seems working fine for me. It would be better if there was a gnus-agent-group-get-new-news for reading the cache, though. -- William http://williamxu.net9.org