Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Phillip Lord <phillip.lord@newcastle.ac.uk>
Subject: Re: fetching mails in batch mode
Date: Fri, 30 Jun 2006 15:54:19 +0100	[thread overview]
Message-ID: <ufyhm4rtw.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <mailman.3565.1151676931.9609.info-gnus-english@gnu.org>

>>>>> "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	other threads:[~2006-06-30 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3565.1151676931.9609.info-gnus-english@gnu.org>
2006-06-30 14:54 ` Phillip Lord [this message]
2006-06-30 20:34   ` Andrea Russo
     [not found]   ` <mailman.3590.1151701797.9609.info-gnus-english@gnu.org>
2006-07-03  9:28     ` Phillip Lord
2006-07-03 14:33       ` Andrea Russo
2006-06-30 13:32 Andrea Russo
2006-06-30 15:42 ` Andrea Russo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ufyhm4rtw.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).