[847] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Re: inc

daemon@ATHENA.MIT.EDU (Yonah Schmeidler)
Mon Dec 12 13:16:33 1994

To: jweiss@MIT.EDU
Cc: linux-help@MIT.EDU, linux-dev@MIT.EDU
In-Reply-To: Your message of "Mon, 12 Dec 1994 12:06:40 EST."
             <199412121706.MAA10337@the-other-woman.MIT.EDU> 
Date: Mon, 12 Dec 1994 13:16:03 -0500
From: Yonah Schmeidler <yonah@MIT.EDU>

> 	   I can't get "inc" to work right for users whose username on
>    the local system is not the same as their athena username. When they
>    do "inc -host poN.mit.edu -user <athena_username>" it gives the
>    message "inc: no mail to incorporate" (unless they're root, in which
>    case it works), even though msgchk tells them they do. Any ideas how
>    to fix this?
> 
> I've noticed a bug on non-Linux Athena workstations, where the -h flag
> to inc is ignored.  I believe that the Linux package is built from the
> same set of sources, so it probably has the same bug.  When I need to
> inc off of a po other than my normal one, I setenv MAILHOST
> accordingly, which seems to be aneffective work-around.  I hadn't
> noticed that root worked any differently, but I hadn't looked.

Here is the list of where it gets host names (from around line 390 in
/afs/sipb/project/sipb-athena/mh/uip/inc.c, assuming POP and HESIOD):

1: MAILHOST environment variable
2: hesiod pobox (NOTE: this ignores the -user flag)
3: -host command line option

[ BTW- this is the same file as
  /afs/rel-eng/project/source/current/third/common/mh-6.8/uip/inc.c ]

The -host option as root probably works because root doesn't have a
hesiod pobox or MAILHOST set.

It looks like there are really 2 bugs, one being that the hesiod lookup
ignores the -user flag, and the other that the -host flag isn't preffered
over the other options.

I'd be willing to fix both of these (assuming people think that they
should be changed) in sipb-athena, but that would still leave it broken
in the athena release...

-yonah

home help back first fref pref prev next nref lref last post