[comp.soft-sys.andrew] console mail icon and RS6000s

paw@eleazar.dartmouth.edu (Pat Wilson) (02/22/91)

We're running console V7.6 (ATK 15.5) on our RS/6000s and are
having trouble getting the mail icon to behave - it appears, but
doesn't seem to figure out where the mailbox is (new mail is not 
registered, and clicking on it produces a "You have no mail" message
even when mail is present in the mailbox).

Has anyone seen this before?  

(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.)

Thanks.

-- 
Pat Wilson
Systems Manager, Project NORTHSTAR
paw@northstar.dartmouth.edu

ghoti+@andrew.cmu.edu (Adam Stoller) (02/22/91)

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