🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #1522

Mail reception notification in 'csh'.

#1522
From: Francis Demierre
Date: Thu, 05 Jan 1989 12:16
39 lines
1888 bytes
I'm having a little problem with notification of new mail
arrival (Aix 2.2 is used).

I have two userid's on the machine for different tasks, one is 'fd1'
and the other is 'fd2'. The different login described here are for
'fd1'.

At the first few days, I was using the 'Bourne shell' as my login shell
and had the following setup in my '.profile' script: 

MAILMSG="[New mail has arrived]^G"
MAIL=/usr/mail/$LOGNAME 		# mailbox location
MAILPATH=$MAIL'%[^GNEW MAIL FOR fd1^G]:/usr/mail/fd2%[^GNEW MAIL FOR fd2^G]'
MAILCHECK=60
export MAILMSG MAIL MAILPATH MAILCHECK 

This worked perfectly and I was notified when new mail arrived for me.

Then, I changed my login shell to be '/bin/csh' and included the
following in my '.login' script:

setenv MAILMSG "[New mail has arrived]^G"
setenv MAIL /usr/mail/$LOGNAME 		# mailbox location
setenv MAILPATH $MAIL'%[^GNEW MAIL FOR fd1^G]:/usr/mail/fd2%[^GNEW MAIL FOR fd2^G]'
setenv MAILCHECK 60

Since that time, I never get notified when new mail arrives for me.

Is the 'mail check' only supported by the '/bin/sh' program ? Am I missing
something in my '.login' script ? Are there different environment varibles
for this in 'csh' ?

Any help will be appreciated. Thanks.

+- - - - - - - - - - - - - - - - - - - - - - - - - - - +
+  Francis Demierre,  M400: demierre@sba.kom.hasler    +
+  Bitnet: francis%hslrswi.UUCP@cernvax.BITNET         +
+  UUcp: {uunet,ukc,mcvax...}!cernvax!hslrswi!francis  +
+- - - - - - - - - - - - - - - - - - - - - - - - - - - +
Technical Details
Message-ID: <873@hslrswi.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!cernvax!hslrswi!francis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!cernvax!hslrswi!francis
From: francis@hslrswi.UUCP (Francis Demierre)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Mail reception notification in 'csh'.
Keywords: mail,MAILMSG,MAILCHECK
Message-ID: <873@hslrswi.UUCP>
Date: 5 Jan 89 12:16:30 GMT
Organization: Hasler AG, CH-3000 Berne 14, Switzerland
Lines: 39