home *** CD-ROM | disk | FTP | other *** search
- /*
- * Currently, the INFO-command is disabled!!
- * -peter
- *
- * #include "listserv.h"
- * #include "protos.h"
- *
- * static char rcsid[] = "$Id: info.c,v 1.1.1.3 1993/12/27 17:24:01 simons Exp simons $";
- *
- * void infoindex(from,request)
- * char *from, *request;
- * {
- * printf("called sendhelp with %s %s\n", from, request);
- * callmailer("", from, request);
- * mailcat(INFOFILE,"");
- * pclose(mailer);
- * return;
- * }
- *
- * void sendinfo(from, command)
- * char *from, *command;
- * {
- * int i;
- * char *p;
- * char doc[256],
- * tmp[512],
- * buf[BUFSIZ];
- *
- * printf("called sendfaq with %s %s\n", from, command);
- * / * Grab filenames trailing after word "info" * /
- * strcpy(buf, command);
- * while(p = index(buf, ' '))
- * {
- * / * Get rid of extra blanks
- * * and return if only trailing whitespace remains * /
- * while(*(++p) == ' ')
- * ;
- * if(!strlen(p))
- * return;
- *
- * strcpy(buf, p);
- * sscanf(buf, "%s", doc);
- * if (index(doc, '*'))
- * {
- * callmailer("", from, command);
- * sprintf(tmp, "%sINFOHELP", SERVDIR);
- * mailcat(tmp, "\t");
- * fflush(mailer);
- * pclose(mailer);
- * continue;
- * }
- * sprintf(tmp, "%s/%s", INFODIR, doc);
- * callmailer("", from, command);
- * if(access(tmp,R_OK) == 0)
- * {
- * mailcat(tmp, "\t");
- * fflush(mailer);
- * pclose(mailer);
- * }
- * else
- * {
- * fprintf(mailer, "File %s does not exist.", doc);
- * fflush(mailer);
- * pclose(mailer);
- * }
- * }
- *
- * }
- */
-