🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Mail reception notification in 'csh'.

#1534
From: Roe Peterson
Date: Thu, 12 Jan 1989 09:52
34 lines
1614 bytes
From article <873@hslrswi.UUCP>, by francis@hslrswi.UUCP (Francis Demierre):
> I'm having a little problem with notification of new mail
> arrival (Aix 2.2 is used).
> 
> At the first few days, I was using the 'Bourne shell' as my login shell
> and had the following setup in my '.profile' script: 
[ script for sh deleted ]
[ this in .login/.profile ]
> 
> 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.

Not surprising - the csh isn't paying any attention to those environment
variables.  Get rid of all the MAIL environment (setenv) variables (unless
you regularly fork a sh from csh) and try:

	set mail=(60 /usr/mail/fd1 /usr/mail/fd2)

in your .cshrc file.

BTW, most csh's don't support customized messages for mail annunciation.
They just say 'You have new mail.'

Remember that the csh DOES NOT use environment variables to control
internal functions; it uses 'local' variables.

-- 

                                  Roe Peterson
                                  uunet!attcan!utgpu!tmsoft!mcl!unibase!roe
Technical Details
Message-ID: <127@unibase.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!tmsoft!mcl!unibase!roe
References: <873@hslrswi.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!tmsoft!mcl!unibase!roe
From: roe@unibase.UUCP (Roe Peterson)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Re: Mail reception notification in 'csh'.
Message-ID: <127@unibase.UUCP>
Date: 12 Jan 89 09:52:50 GMT
References: <873@hslrswi.UUCP>
Organization: EMIS Consulting, Regina, Saskatchewan, Canada
Lines: 34