From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46404 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: diret imap and agentised imap in sync Date: Wed, 04 Sep 2002 21:16:36 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87fzwruqsv.fsf@giotto.sj.ru> <87admx62vx.fsf@pale.loc> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031167033 17564 127.0.0.1 (4 Sep 2002 19:17:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 19:17:13 +0000 (UTC) Cc: ding@gnus.org 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 17mfeK-0004Z8-00 for ; Wed, 04 Sep 2002 21:17:12 +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 17mfee-0001Ah-00; Wed, 04 Sep 2002 14:17:32 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Sep 2002 14:18: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 OAA28718 for ; Wed, 4 Sep 2002 14:17:55 -0500 (CDT) Original-Received: (qmail 8973 invoked by alias); 4 Sep 2002 19:17:10 -0000 Original-Received: (qmail 8968 invoked from network); 4 Sep 2002 19:17:09 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 4 Sep 2002 19:17:09 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g84JGg814149; Wed, 4 Sep 2002 21:16:42 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id VAA19806; Wed, 4 Sep 2002 21:16:36 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 938063ADDC; Wed, 4 Sep 2002 21:16:36 +0200 (CEST) Original-To: Alexander Kotelnikov Mail-Followup-To: Alexander Kotelnikov , ding@gnus.org In-Reply-To: <87admx62vx.fsf@pale.loc> (Alexander Kotelnikov's message of "Wed, 04 Sep 2002 22:11:46 +0400") Original-Lines: 41 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46404 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46404 Alexander Kotelnikov writes: > It seems it works better if I > 1. Set gnus plugged ('J j') > 2. Check groups ('g') > 3. Fetch groups ('J s') > 3. unplug gnus and read news > > But it is much more comfortable to keep gnus always unplugged and > fetch articles with external program. Aha! Now it rings a bell with me. Ages ago I wrote the following (now probably quite outdated) function to fetch news/mail for me: (defun kai-gnus-agent-do () (let ((gnus-verbose 5)) (message "Kai: fetching Agent session.") (flet ((y-or-n-p (prompt) t) (yes-or-no-p (prompt) t)) (gnus-agent-batch)) ;(gnus-agent-fetch-session) (message "Kai: starting Gnus") (gnus) (message "Kai: sending drafts") (gnus-group-send-drafts) (message "Kai: synchronizing flags") (gnus-agent-synchronize) (message "Kai: fetching agent stuff") (gnus-agent-batch) (message "Kai: exiting Gnus") (gnus-group-exit) (save-buffers-kill-emacs t))) I called this function from "emacs -batch" (I think). (Now I don't use it anymore.) It seems that I'm doing what you discovered is necessary. Maybe the gnus-agent-batch function should be augmented to do what the above does. kai -- A large number of young women don't trust men with beards. (BFBS Radio)