Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: Gnus Access mail spool by ssh
Date: 11 Jul 2000 05:39:10 -0700	[thread overview]
Message-ID: <m2n1jo7sep.fsf@reader.ptw.com> (raw)
In-Reply-To: Helmut Waitzmann's message of "10 Jul 2000 16:31:07 +0200"

Helmut Waitzmann <Helmut.Waitzmann@studserv.uni-stuttgart.de> writes:

> Harry Putnam <reader@newsguy.com> writes:
> 
> >  getmail.sh script 
> >
> >  #!/bin/sh 
> >  MOVEMAIL=/usr/lib/emacs/20.5/i386-redhat-linux-gnu/movemail
> >  TMP=/home/reader/spool/backup/lap.tmp
> >  MAIL=/home/reader/spool/backup/lap.sp
> >  if [ -s $MAIL ];then 
> >  rm -f $TMP;$MOVEMAIL $MAIL $TMP >/dev/null && cat $TMP
> >  fi
> 
> And now, imagine:  Movemail has just moved your mail to $TMP, when
> the connection breaks.  So cat won't be able to send you your
> mail.  The next time you fetch mail, your old $TMP file will be
> deleted and your mail will be gone...

Good point, maybe this is a little safer..:

#!/bin/sh 
MOVEMAIL=/usr/lib/emacs/20.5/i386-redhat-linux-gnu/movemail
TMP=/home/reader/spool/backup/lap.tmp
MAIL=/home/reader/spool/backup/lap.sp
if [ -s $TMP ];then
exit 1
else 
$MOVEMAIL $MAIL $TMP >/dev/null && cat $TMP && rm -f $TMP
fi

Then at least I can check it out before anything is deleted.

How can I change this (or the mail-source prescript) so that gnus tells
me if something untoward happens?






  parent reply	other threads:[~2000-07-11 12:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-08 21:02 Harry Putnam
2000-07-08 23:08 ` Kai Großjohann
2000-07-09  2:03 ` Alan Shutko
2000-07-10  4:56   ` Harry Putnam
2000-07-10 11:48     ` Kai Großjohann
     [not found]     ` <lfllmzam504.fsf@rupert.informatik.uni-stuttgart.de>
2000-07-11 12:39       ` Harry Putnam [this message]
2000-07-11 22:28         ` Alexandre Oliva
2000-07-12  0:01           ` Harry Putnam
2000-07-12  2:31             ` Alexandre Oliva
2000-07-12  8:06               ` Kai Großjohann
2000-07-12  8:52                 ` Nuutti Kotivuori
2000-07-12 11:26                   ` Harry Putnam
2000-07-12 14:54                     ` Nuutti Kotivuori
2000-07-12 15:10                       ` Harry Putnam
2000-07-12 17:07                         ` Kai Großjohann
2000-07-12 19:22                       ` Harry Putnam
2000-07-12 19:42                         ` Alan Shutko
2000-07-12 21:28                           ` Harry Putnam
2000-07-13  3:50                             ` Nuutti Kotivuori
2000-07-13  3:46                         ` Nuutti Kotivuori
2000-07-14 11:02                           ` Harry Putnam
2000-07-16 15:11                             ` Nuutti Kotivuori
2000-07-15  0:29                   ` Simon Josefsson
2000-07-10 12:00 ` Nuutti Kotivuori

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=m2n1jo7sep.fsf@reader.ptw.com \
    --to=reader@newsguy.com \
    /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).