the password file to the alias).
- conflict(8) was deprecated in nmh 1.6, and was removed in this release.
- mhtest(8) was deprecated in nmh 1.6, and was removed in this release.
- msh(1) was deprecated in nmh 1.6, and was removed in this release.
+- Support in alias files for the the "*" address-group (everyone) was
+ deprecated in nmh 1.6, and was removed in this release.
-------------------
DEPRECATED FEATURES
*/
extern char *AliasFile; /* mh-alias(5) */
-#define PASSWD "/etc/passwd" /* passwd(5) */
-#define GROUP "/etc/group" /* group(5) */
-#define EVERYONE 200 /* lowest uid for everyone */
struct aka {
char *ak_name; /* name to match against */
#define AK_ERROR 2 /* error parsing file */
#define AK_LIMIT 3 /* memory limit exceeded */
#define AK_NOGROUP 4 /* no such group */
-
-/* should live here, not in mts.c */
-
-extern int Everyone;
-extern char *NoShell;
* Global MailDelivery File
*/
extern char *maildelivery;
-
-/*
- * Aliasing Facility (doesn't belong here)
- */
-extern int Everyone;
-extern char *NoShell;
.RI " | < " file
.RI " | = " UNIX\-group
.RI " | + " UNIX\-group
- | *
.IR address\-list " := " address
.RI " | " address\-list ", " address
.I address\-list
for the alias.
.PP
-If the
-.I address\-group
-is simply \*(lq*\*(rq, the system's password database
-is consulted and all login names with a userid
-greater than some magic number (usually 200) are added to the
-.I address\-list
-for the alias.
-.B
-This feature is obsolescent and will be removed in a future release.
-.PP
In match, a trailing \*(lq*\*(rq on an alias will match just about anything
appropriate.
.PP
.IR slocal (1)
for the details.
.RE
-.PP
-.BR everyone :
-200
-.RS 5
-The highest user-id which should NOT receive mail addressed to
-\*(lqeveryone\*(rq.
-.RE
-.PP
-.BR noshell :
-.RS 5
-If set, then each user-id greater than \*(lqeveryone\*(rq that has a
-login shell equivalent to the given value (e.g., \*(lq/bin/csh\*(rq)
-indicates that mail for \*(lqeveryone\*(rq should not be sent to them.
-This is useful for handling admin, dummy, and guest logins.
-.RE
.SS "SMTP support"
This option is only available if you set
.B mts
char *maildelivery = nmhetcdir(/maildelivery);
-/*
- * Aliasing Facility (doesn't belong here)
- */
-int Everyone = NOTOK;
-static char *everyone = "-1";
-char *NoShell = "";
-
/*
* Customize the MTS settings for nmh by adjusting
* the file mts.conf in the nmh etc directory.
{ "pophost", &pophost },
{ "maildelivery", &maildelivery },
- { "everyone", &everyone },
- { "noshell", &NoShell },
{ NULL, NULL }
};
fclose (fp);
}
- Everyone = atoi (everyone);
-
save_mts_method (mts_method);
}
static int addfile (struct aka *, char *);
static int addgroup (struct aka *, char *);
static int addmember (struct aka *, char *);
-static int addall (struct aka *);
static char *getalias (char *);
static void add_aka (struct aka *, char *);
static struct aka *akalloc (char *);
}
break;
- case '*': /* Everyone */
- addall (ak);
- break;
-
default: /* list */
while ((cp = getalias (pp)))
add_aka (ak, cp);
}
-static int
-addall (struct aka *ak)
-{
- int noshell = NoShell == NULL || *NoShell == 0;
- register struct home *hm;
-
- init_pw ();
-
- if (Everyone < 0)
- Everyone = EVERYONE;
-
- for (hm = homehead; hm; hm = hm->h_next)
- if ((int) hm->h_uid > Everyone
- && (noshell || strcmp (hm->h_shell, NoShell)))
- add_aka (ak, hm->h_name);
-
- return homehead != NULL;
-}
-
-
static char *
getalias (char *addrs)
{