info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetching mails in batch mode


From: Phillip Lord
Subject: Re: fetching mails in batch mode
Date: Fri, 30 Jun 2006 15:54:19 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

>>>>> "AR" == Andrea Russo <rastandy@salug.it> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]