Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!ucbvax!andrew.cmu.edu!ghoti+ From: ghoti+@andrew.cmu.edu (Adam Stoller) Newsgroups: comp.soft-sys.andrew Subject: Re: console mail icon and RS6000s Message-ID: Date: 22 Feb 91 13:23:20 GMT References: <1991Feb21.221138.5121@dartvax.dartmouth.edu> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38 Excerpts from internet.info-andrew: 21-Feb-91 console mail icon and RS6000s Pat Wilson@ucbvax.Berkel (795) > (I've also run into problems with the "mail icon" (really mailmonf) and > /bin/ksh - looks to me that "$mail" must be defined, but if "$MAIL" is > defined (even if it's to the same thing!), CheckDir gets confused and > starts sqwaking about /usr/spool/mail/{$USER} not being a directory > (which it's not). Haven't figured out _why_ this is happening, just how > to fix it.) Yes - it looks for the environment variable "MAIL" (not "mail") - but that's not the only thing. Look in your AndrewSetup file - in order for Console to expect mail to be delivered as a single file (rather than separate files in a directory) you need to have the following line in your AndrewSetup: AMS_NonAMSDelivery: yes (or: true, or: 1) Actually - the above line should only be needed if AMS_DELIVERY_ENV was set on when you built the software - from what I can tell looking at the source - if AMS_DELIVERY_ENV is not defined, it will initialize the variable UseNonAndrewMail to TRUE - and then iff AMS_NonAMSDelivery is set (either way) in the AndrewSetup file, it will attempt to re-initialize UseNonAndrewMail. If set as above, UseNonAndrewMail will [again] be set to TRUE, otherwise FALSE. However, if that line isn't in the AndrewSetup file at all - it should continue to use the initial setting of UseNonAndrewMail Sigh - this is pretty confusing to write about - the code in question is in atk/console/cmd/mailmon.c. Check near the top of the file and in the functions InitMail(), and SetMailEnv() Hope that helps. --fish Brought to you by Super Global Mega Corp .com