-Thu Jul 20 19:24:17 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
+Thu Jul 20 19:30:23 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
* Moved Kimmo's new "--with-hash-backup" to be output with the
rest of the --with options in the configure --help output. Also,
overkill. You only need 3 steps, since configure.in is the only
autoconf file with the RCS $Id keyword.
+ * Applied Kurt J. Lidl <lidl@eng.us.uu.net>'s $MAILHOST patch:
+
+ I have a small patch that would be nice to be included --
+ basically, it allows the usage of the "MAILHOST" environment
+ variable, without having to have HESIOD turned on. I need
+ this functionality for my environment, where we have identical
+ /usr/local on all my machines (so I cannot just hardcode into
+ the mts.conf file), and I have multiple POP mail servers for
+ my users.
+
+ Modified inc.man to reflect that along with "pophost:" and -host,
+ $MAILHOST can now activate POP mail inclusion as well.
+
Tue Jul 18 19:36:59 EDT 2000 Kimmo Suominen <kim@tac.nyc.ny.us>
* Added the answer to Dan's question in README.developers.
%nmhbeginpop%
.Uh "Using POP"
-\fIinc\fR will normally check local mail drops for mail, as given
-above. But if the option \*(lqpophost:\*(rq is set in the mts
-configuration file \*(lqmts.conf\*(rq, or if the `\-host\ hostname'
-switch is given, then \fIinc\fR will query this POP service host
-for mail to incorporate.
+\fIinc\fR will normally check local mail drops for mail, as covered above. But
+if the option \*(lqpophost:\*(rq is set in \*(lqmts.conf\*(rq, or if the
+`\-host\ hostname' switch is given, or if the \fB$MAILHOST\fR environment
+variable is set, then \fIinc\fR will query this POP service host for mail to
+incorporate. If \fB$MAILHOST\fR is set and \-host is specified as well, the
+commandline switch will override the environment variable.
The default is for \fIinc\fR to assume that your account name on
the POP server is the same as your current username. To specify
#ifdef POP
int nmsgs, nbytes, p = 0;
char *pass = NULL;
+ char *MAILHOST_env_variable;
#endif
#ifdef MHE
#ifdef HESIOD
struct hes_postoffice *po;
- char *tmphost;
#endif
/* absolutely the first thing we do is save our privileges,
argp = arguments;
#ifdef POP
-# ifdef HESIOD
/*
* Scheme is:
* use MAILHOST environment variable if present,
* If that fails, use the default (if any)
* provided by mts.conf in mts_init()
*/
- if ((tmphost = getenv("MAILHOST")) != NULL)
- pophost = tmphost;
+ if ((MAILHOST_env_variable = getenv("MAILHOST")) != NULL)
+ pophost = MAILHOST_env_variable;
+# ifdef HESIOD
else if ((po = hes_getmailhost(getusername())) != NULL &&
strcmp(po->po_type, "POP") == 0)
pophost = po->po_host;