From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31739 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Access mail spool by ssh Date: 11 Jul 2000 05:39:10 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168115 15791 80.91.224.250 (21 Oct 2002 02:41:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:41:55 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id D6E78D051E for ; Tue, 11 Jul 2000 08:48:15 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id HAC01107; Tue, 11 Jul 2000 07:44:49 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 11 Jul 2000 07:44:00 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id HAA21280 for ; Tue, 11 Jul 2000 07:43:48 -0500 (CDT) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by mailhost.sclp.com (Postfix) with SMTP id 694C4D051E for ; Tue, 11 Jul 2000 08:44:19 -0400 (EDT) Original-Received: (qmail 5420 invoked from network); 11 Jul 2000 12:44:18 -0000 Original-Received: from adsl-117-113.ln.networkone.net (HELO reader.ptw.com) (209.144.117.113) by mail.networkone.net with SMTP; 11 Jul 2000 12:44:18 -0000 Original-Received: (from reader@localhost) by reader.ptw.com (8.9.3/8.9.3) id FAA19600; Tue, 11 Jul 2000 05:44:14 -0700 X-Authentication-Warning: reader.ptw.com: reader set sender to reader@newsguy.com using -f Original-To: ding@gnus.org In-Reply-To: Helmut Waitzmann's message of "10 Jul 2000 16:31:07 +0200" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 Original-Lines: 38 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31739 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31739 Helmut Waitzmann writes: > Harry Putnam 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?