[13027] in Athena Bugs
inc patch
daemon@ATHENA.MIT.EDU (Yonah Schmeidler)
Tue Dec 13 21:44:51 1994
To: bugs@MIT.EDU
Date: Tue, 13 Dec 1994 21:44:41 EST
From: Yonah Schmeidler <yonah@MIT.EDU>
Enclosed is a patch to inc.c for mh which fixes 2 problems:
1) If the -user flag is used, then its argument will be used for the
hesiod pobox lookup.
2) The -host flag will now be used in preference to the MAILHOST environment
variable and hesiod pobox lookup [NetProb ticket 2452, I was told].
-yonah
*** /afs/rel-eng/project/release/source/third/common/mh-6.8/uip/inc.c Fri Nov 5 06:14:50 1993
--- inc.c Tue Dec 13 16:47:42 1994
***************
*** 385,396 ****
{
if ((tmphost = getenv("MAILHOST")) != NULL)
pophost = tmphost;
! else if ((po = hes_getmailhost(getusr())) != NULL &&
! strcmp(po->po_type, "POP") == 0)
! pophost = po->po_host;
}
#endif /* HESIOD */
! if (pophost && *pophost)
host = pophost;
if (host && !*host)
--- 385,401 ----
{
if ((tmphost = getenv("MAILHOST")) != NULL)
pophost = tmphost;
! else
! {
! if (user == NULL)
! user = getusr ();
! if ((po = hes_getmailhost(user)) != NULL &&
! strcmp(po->po_type, "POP") == 0)
! pophost = po->po_host;
! }
}
#endif /* HESIOD */
! if ((!host || !*host) && pophost && *pophost)
host = pophost;
if (host && !*host)