From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7604 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.gnus.user Subject: Re: fetching mails in batch mode Date: Fri, 30 Jun 2006 15:54:19 +0100 Organization: University of Newcastle upon Tyne Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151682130 19953 80.91.229.2 (30 Jun 2006 15:42:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2006 15:42:10 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Jun 30 17:42:08 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FwL7u-0004Pv-H3 for gegu-info-gnus-english@m.gmane.org; Fri, 30 Jun 2006 17:41:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwL7u-00063H-37 for gegu-info-gnus-english@m.gmane.org; Fri, 30 Jun 2006 11:41:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!feed3.jnfs.ja.net!jnfs.ja.net!news.ncl.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 30 Original-NNTP-Posting-Host: dinley.ncl.ac.uk Original-X-Trace: ucsnew1.ncl.ac.uk 1151679259 6241 128.240.150.78 (30 Jun 2006 14:54:19 GMT) Original-X-Complaints-To: abuse@newcastle.ac.uk Original-NNTP-Posting-Date: Fri, 30 Jun 2006 14:54:19 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:0xJUlxhF7M0WI4RIXogc0SSkJuE= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77789 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7604 Archived-At: >>>>> "AR" == Andrea Russo writes: AR> Hi all, AR> Reading the gnus manual: AR> ,----[ (info "(gnus)Batching Agents") ] | You can run a complete AR> batch command from the command line with the | following AR> incantation: AR> | AR> | #!/bin/sh AR> | emacs -batch -l ~/.emacs -l ~/.gnus.el gnus-agent-batch >/dev/null 2>&1 AR> `---- AR> My concern is that if I use this script to download AR> asynchronously mails while using an instance of gnus on a non AR> batch emacs to read and write mails, there are race conditions AR> that can lead to currupted or lost files? AR> And in case of concurrent running of the same batch script? It will all go horrible wrong if you do this. If you are already running an Emacs, I presume that you want to read in batch because emacs hangs while reading? In which case, you might want to use the gnus-demon instead which will read in the idle cycle. You might also want to look at the nnmaildir backend which is supposed to cope with concurrent modification. Never tried it, although I mean to at some time. Phil