ANU News Patch Patch ID: 920622_newscontrol.c!dittman@skitzo.dseg.ti.com Date: 22-Jun-1992 Author: Eric Dittman dittman@skitzo.dseg.ti.com News Version: 6.1beta5 News Files: NewsControl.C Description: Bounces all control messages with !apple!apple!cascader!cascade in the Path: header, since this has been the source of a number of forged cancel messages. *** newscontrol.c; --- newscontrol_new.c ************** *** 50,55 ** blank line, so you'd get newsgroups with descriptions of ** "your newsgroups file:\n". Also checked a bit more strictly ** for the proper format. ** **-- **/ --- 50,58 ----- ** blank line, so you'd get newsgroups with descriptions of ** "your newsgroups file:\n". Also checked a bit more strictly ** for the proper format. + ** V6.1 22-Jun-1992 Eric Dittman dittman@skitzo.dseg.ti.com + ** - Added hack to bounce control messages from !apple!apple!cascader!cascade + ** due to an epidemic of forged cancels ** **-- **/ ************** *** 734,739 int switches; { char *id, *ide, control[132], net_sender[132], *mail_sender; mail_sender = argv[SENDER]; if (!mail_sender || !*mail_sender) mail_sender = argv[FROM]; --- 737,748 ----- int switches; { char *id, *ide, control[132], net_sender[132], *mail_sender; + + /* Hack for forged cancels from ...!apple!apple!cascader!cascade */ + char *mail_path; + mail_path = argv[PATH]; + if (strstr(mail_path, "!apple!apple!cascader!cascade")) + return(NONAPPROVEDCONTROL); mail_sender = argv[SENDER]; if (!mail_sender || !*mail_sender) mail_sender = argv[FROM]; *** patchlist.h;-1 --- patchlist.h ************** *** 1,1 =+=+= End =+=+= --- 1,2 ----- + 920622_newscontrol.c!dittman@skitzo.dseg.ti.com =+=+= End =+=+=