Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!quick!thebes!happym!kent From: kent@happym.wa.com (Kent Forschmiedt) Newsgroups: news.software.b Subject: Small improvement to 2.11 rmgroup Summary: Make rmgroup notification unsharable Message-ID: <777@happym.wa.com> Date: 2 May 89 22:00:07 GMT Reply-To: kent@happym.wa.com (Kent Forschmiedt) Organization: Happy Man Corp. Lines: 35 If your system is configured to notify you of rmgroup messages instead of doing them itself, this patch will make executing the rmgroup command a bit easier for you. It makes the notice look like a shar archive so that you can just pipe it to unshar. Of course, if you use a "safe" unshar that won't really execute commands, this won't work for you. *** Orig/control.c Mon May 1 15:15:31 1989 --- control.c Tue May 2 14:43:30 1989 *************** *** 588,596 **** } else { fprintf(fd, "%s requested that newsgroup %s be removed.\n", header.path, argv[1]); ! fprintf(fd, "You should remove it by hand\n"); ! fprintf(fd, "To do this, execute the command\n"); fprintf(fd, "\t%s/rmgroup %s\n", LIB, argv[1]); } fprintf(fd, "\n\n%s says:\n", header.path); controlmail = fd; --- 588,599 ---- } else { fprintf(fd, "%s requested that newsgroup %s be removed.\n", header.path, argv[1]); ! fprintf(fd, "You should remove it by hand. To do this, unshar\n"); ! fprintf(fd, "this message or execute the following command:\n"); ! fprintf(fd, "-------------------- cut here -------------------\n"); ! fprintf(fd, "#!/bin/sh\n"); fprintf(fd, "\t%s/rmgroup %s\n", LIB, argv[1]); + fprintf(fd, "exit 0\n"); } fprintf(fd, "\n\n%s says:\n", header.path); controlmail = fd; -- kent@happym.wa.com, tikal!camco!happym!kent, Happy Man Corp 206-282-9598