home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / ListSERV1_4.lha / ListSERV / source / commands.c next >
Encoding:
C/C++ Source or Header  |  1993-12-28  |  1.4 KB  |  50 lines

  1. #include "listserv.h"
  2. #include "protos.h"
  3.  
  4. static char rcsid[] = "$Id: commands.c,v 1.4.1.6 1993/12/28 22:16:34 simons Exp simons $";
  5.  
  6. void sendhelp(char *from,
  7.               char *request)
  8. {
  9.         printf("called sendhelp with %s %s\n", from, request);
  10.         callmailer("", from, request);
  11.         mailcat(HELPFILE,"");
  12.         pclose(mailer);
  13.         return;
  14.         }
  15.  
  16. void listhelp(char *from,
  17.               char *grp,
  18.               char *request)
  19. {
  20.         char tmp[128];
  21.         printf("called listhelp with %s %s %s\n", from,grp,request);
  22.  
  23.         callmailer("", from, request);
  24.         sprintf(tmp, "%s%s/Description", LISTDIR, grp);
  25.         mailcat(tmp ,"");
  26.         pclose(mailer);
  27.         return;
  28.         }
  29.  
  30. void sendindex(char *from,
  31.                char *request,
  32.                int longi)
  33. {
  34.         char tmp[128];
  35.         printf("called sendindex with %s %s %d\n", from, request, longi);
  36.  
  37.         callmailer("", from, request);
  38.         fprintf(mailer, "------------------------ Index of mailing lists ----------------------\n");
  39.         sprintf(tmp, "%sINDEX", SERVDIR);
  40.         mailcat(tmp, "");
  41.         fprintf(mailer, "----------------------------------------------------------------------\n");
  42.         if (longi)
  43.         {
  44.                 fprintf(mailer, "\nSorry, but the LONGINDEX command is not supported in this ListSERV\nversion!\n");
  45.         }
  46.         pclose(mailer);
  47.         return;
  48. }
  49.  
  50.