From: Dan Harkless Date: Wed, 26 Jan 2000 04:54:30 +0000 (+0000) Subject: Changed Mmailids to an extern so that we can access it from post.c to see if we X-Git-Tag: nmh-1_0~103 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=c1db884b287ee5c7dbca66be973c88aba40b9bc9 Changed Mmailids to an extern so that we can access it from post.c to see if we should do the new draft-From:-based masquerading. Also clarified some comments now that there are two different types of masquerading. --- diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index 61a604c..254a758 100644 --- a/zotnet/mts/mts.c +++ b/zotnet/mts/mts.c @@ -61,7 +61,7 @@ static char username[BUFSIZ]; static char fullname[BUFSIZ]; /* variables for username masquerading */ -static int MMailids = 0; +int MMailids = 0; /* used from post.c as well as here */ static char *mmailid = "0"; @@ -375,7 +375,8 @@ getfullname (void) /* * Find the user's username and full name, and cache them. - * It also handles mmailid processing (username masquerading) + * Also, handle "mmailid" username masquerading controlled from the GECOS field + * of the passwd file. */ static void @@ -410,9 +411,13 @@ getuserinfo (void) /* * Do mmailid (username masquerading) processing. The GECOS - * field should have the form "Full Name ". + * field should have the form "Full Name ". For instance, + * "Dan Harkless ". Naturally, you'll want your MTA to have + * an alias (e.g. in /etc/aliases) from "fakeusername" to your account name. */ #ifndef GCOS_HACK + /* What is this code here for? As of 2000-01-25, GCOS_HACK doesn't appear + anywhere else in nmh. -- Dan Harkless */ for (cp = fullname; *np && *np != (MMailids ? '<' : ','); *cp++ = *np++) continue; #else