[bit.listserv.mailbook] setting NAMES in MAILUSER XEDIT

TOMHO@PURCCVM.BITNET (Thomas I. M. Ho) (02/04/90)

In MAILUSER XEDIT, I want to specify several names files in addition to
userid.  I'm trying to set up a "generic" MAILUSER XEDIT for all of my
users so that each user doesn't have to put his own userid literally into
his own copy of MAILUSER XEDIT, i.e. I want to use:
     SETMAIL NAMES USERID()

However, I can't seem to get MAIL to recognize any other NAMES files that
I put in!  How do I do that?

BEC@ALBNYVM1.BITNET (Ben Chi) (02/04/90)

On Sat, 3 Feb 90 20:28:21 EST Thomas I. M. Ho said:
>In MAILUSER XEDIT, I want to specify several names files in addition to
>userid.  I'm trying to set up a "generic" MAILUSER XEDIT for all of my
>users so that each user doesn't have to put his own userid literally into
>his own copy of MAILUSER XEDIT. . .

If your goal is for each user to access his own NAMES file, and also pub-
lic NAMES files XXX NAMES and YYY NAMES,

"SETMAIL NAMES" USERID() "XXX YYY"

surely should do it (as was pointed out on this list a few weeks ago).

If you want to be a little more elegant (and allow for the possibility
that some user may not have accessed the minidisk containing XXX and/or
YYY, you can do the following in your MAILUSER XEDIT:

nameFileList = USERID() "XXX YYY"   /* List of NAMES files to search. */

"SET CMSTYPE HT"
x = ""
DO i = 1 TO WORDS(nameFileList)
  y = WORD(nameFileList,i)
  ADDRESS CMS "STATE" y "NAMES *"
  IF RC = 0 THEN x = x y
END
"SET CMSTYPE RT"
"SETMAIL NAMES" x

I picked up this idea from Grant Harders, a member of our staff.

SCHAFER@RICEVM1.RICE.EDU (Richard A. Schafer) (02/05/90)

On Sat, 3 Feb 90 20:28:21 EST Thomas I. M. Ho said:
>In MAILUSER XEDIT, I want to specify several names files in addition to
>userid.  I'm trying to set up a "generic" MAILUSER XEDIT for all of my
>users so that each user doesn't have to put his own userid literally into
>his own copy of MAILUSER XEDIT, i.e. I want to use:
>     SETMAIL NAMES USERID()
>
>However, I can't seem to get MAIL to recognize any other NAMES files that
>I put in!  How do I do that?
I really don't understand this at all.

1. Things you want to set for everyone by default should be put into
   MAILSYS XEDIT, not MAILUSER XEDIT.

2. What you're saying you want to do is *already* the default behavior!
   (assuming that the user actually *has* a names file, of course.)

3. SETMAIL NAMES USERID() should setup things so that the user's own
   names file is used.  What do you mean "any other NAMES files"?

Richard