LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Wed, 26 Feb 1997 14:51:47 EST
text/plain (42 lines)
>Is there any way to bulk add users so they are notified and given a welcome
>email?  Using the command:

>Add listname emailaddress first last
You didn't say what platform you were using, but using VM and REXX it's easy.
  1. create a flat file called list names (or whatever) information separated
     by a blank space.  listname [log in to unmask] First Last
  2. code a rexx exec called addusers exec (or whatever exec)

     /* read in list names and add to appropriate list */
     'EXECIO DISKR LIST NAMES A 1 ( FINIS STEM ADDU.'
     'set cmstype ht' ; 'set msg off' ; 'set imsg off' ; 'set wng off'
     do n=1 to addu.0
        parse var addu.n list addr first last .
        'exec tell listserv add 'list addr first last
     end
     'set cmstype rt' ; 'set msg on' ; 'set imsg on' ; 'set wng on'
     exit

     note: setting cmstype, msg, imsg, wng aren't necessary, but I
           wouldn't wish to see all the messages bouncing around on
           the screen. Also keep in mind the exec will execute faster
           that listserv can process the commands, so once the exec
           is finished and messaging has been restored, you might want
           to log off or manually turn off messages.
  3. run from the listserv maintainers userid, just type addusers

Very elementary, but effective. You could easily add additional code to
record each person added, update the screen as users are added, etc...
The same process should be similar accross different platforms.

Now if you wanted to send a message other than the standard blurb, then
you'd have to create a filelist for that list, put an entry in the list's
filelist as follows: filename = listname  filetype = welcome, create and
store file listname welcome on Listserv server. The welcome message would
be sent with the standard blurb when a user is added.

Keep in mind the procedures described above are for Listserv installed on
VM!

Howard

ATOM RSS1 RSS2