home *** CD-ROM | disk | FTP | other *** search
- #include "listserv.h"
- #include "protos.h"
-
- static char rcsid[] = "$Id: commands.c,v 1.4.1.6 1993/12/28 22:16:34 simons Exp simons $";
-
- void sendhelp(char *from,
- char *request)
- {
- printf("called sendhelp with %s %s\n", from, request);
- callmailer("", from, request);
- mailcat(HELPFILE,"");
- pclose(mailer);
- return;
- }
-
- void listhelp(char *from,
- char *grp,
- char *request)
- {
- char tmp[128];
- printf("called listhelp with %s %s %s\n", from,grp,request);
-
- callmailer("", from, request);
- sprintf(tmp, "%s%s/Description", LISTDIR, grp);
- mailcat(tmp ,"");
- pclose(mailer);
- return;
- }
-
- void sendindex(char *from,
- char *request,
- int longi)
- {
- char tmp[128];
- printf("called sendindex with %s %s %d\n", from, request, longi);
-
- callmailer("", from, request);
- fprintf(mailer, "------------------------ Index of mailing lists ----------------------\n");
- sprintf(tmp, "%sINDEX", SERVDIR);
- mailcat(tmp, "");
- fprintf(mailer, "----------------------------------------------------------------------\n");
- if (longi)
- {
- fprintf(mailer, "\nSorry, but the LONGINDEX command is not supported in this ListSERV\nversion!\n");
- }
- pclose(mailer);
- return;
- }
-
-