🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #810

Re: movemail cannot lock file

#810
From: Hamish Macdonald
Date: Wed, 11 Aug 1993 14:22
52 lines
1906 bytes
>>>>> On 10 Aug 1993 11:38:24 EST,
>>>>> In message <ghsu.745000704@unstable>,
>>>>> ghsu@unstable.nswc.navy.mil (Guan-Hsing Hsu) wrote:

Guan-Hsing> I have recently compiled Epoch 4.2 to run on a HP 720 and
Guan-Hsing> it runs very well except for movemail.  I cannot read mail
Guan-Hsing> with Epoch and I checked the source movemail.c, and I
Guan-Hsing> quote

This is what I use for movemail on hpux:


# This is a shell archive.  Remove anything before this line,
# then unpack it by saving it in a file and typing "sh file".
#
# Wrapped by Hamish Macdonald <hamish@bmerh166> on Wed Aug 11 10:22:16 1993
#
# This archive contains:
#	/bnr/contrib/lemacs/etc/movemail	
#

LANG=""; export LANG
PATH=/bin:/usr/bin:$PATH; export PATH

echo x - movemail
cat >movemail <<'@EOF'
#!/bin/sh
if [ "$#" != 2 ]; then
    echo "Usage: $0 infile outfile" 1>&2
    exit 1
fi
umask 077
if [ -r $1 ]; then
    /bin/rm -f $2
    touch $2
    yes "s $2" | mail -r -f $1 > /dev/null
    stat=$?
    if [ $stat = 0 ]; then
        /bin/rm -f $1
        exit 0
    else
        exit $stat
    fi
else
    echo "$0:  File $1 is not readable" 1>&2
    exit 1
fi
@EOF

chmod 755 movemail

exit 0
Technical Details
Message-ID: <1993Aug11.142255.6597@bmerh85.bnr.ca>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!torn!nott!bnrgate!bmerh85!bmerh85!hamish
References: <ghsu.745000704@unstable>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,b87e7ee78a8dd704
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1993-08-11 07:58:00 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!torn!nott!bnrgate!bmerh85!bmerh85!hamish
From: Hamish.Macdonald@bnr.ca (Hamish Macdonald)
Subject: Re: movemail cannot lock file
In-Reply-To: ghsu@unstable.nswc.navy.mil's message of 10 Aug 1993 11:38:24 EST
Message-ID: <1993Aug11.142255.6597@bmerh85.bnr.ca>
Sender: news@bmerh85.bnr.ca (Usenet News)
Organization: I speak for nobody but myself
References: <ghsu.745000704@unstable>
Date: Wed, 11 Aug 93 14:22:55 GMT
Lines: 52