X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2Fmts%2Fmts.c;h=254a758e6e90862bf1982b8017df7563a236c941;hb=c0a38419e027e400b370db10086bcb8a3c981ce7;hp=f53a8be62f82808fb0f2bc10ce415d8341e910a2;hpb=3d251965606d6a6e47897504594f84d12e3e292a;p=mmh diff --git a/zotnet/mts/mts.c b/zotnet/mts/mts.c index f53a8be..254a758 100644 --- a/zotnet/mts/mts.c +++ b/zotnet/mts/mts.c @@ -5,6 +5,7 @@ * $Id$ */ +#include "h/mh.h" /* for snprintf() */ #include #define nmhetcdir(file) NMHETCDIR#file @@ -60,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"; @@ -374,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 @@ -409,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