From: SMTP%"everhart@star.zko.dec.com" 19-OCT-1995 18:15:47.41 To: EVERHART CC: Subj: UUCP bug workaround - vmsnet.uucp #2612 Date: Thu, 19 Oct 1995 11:19:36 -0400 Message-Id: <95101911193643@star.zko.dec.com> From: everhart@star.zko.dec.com (Glenn C. Everhart 603 881 1497) To: everhart@GCE.MV.COM Subject: UUCP bug workaround - vmsnet.uucp #2612 X-Vms-To: smtp%"everhart@gce.mv.com" In article <1995Oct13.171415.140@symark.com>, marty@symark.com writes: After being bitten by the UUCP mailer bug three times this morning, I decided to try and do something about it. Recap: The UUCP mailer will go into an infinite loop, filling up all available space on the UUCP_DISK if it encounters an incoming mail input file with any lines in the header more than 255 characters in length. Solution: Trying to make this as simple as possible, I did the following. 1 - Wrote a C program to read an input file and return 0 if any line in the file was greater than 255 characters. This was a quick and dirty program that simply opens the file in binary stream mode and counts the number of characters between occurrences of any one of \000, \n or \r. The program returns 1 in all other cases. 2 - Modified UUXQT_DCL.COM so that just before it invokes the UUCP RMAIL portion of the command procedure it runs the file through this program. If the program returns 0, I have that part of the command procedure goto FAILED_RMAIL_1. This handles mailing a message to the local POSTMASTER and gets the files out of the way. After testing and tweaking it for the better part of the day I concluded that this method seems to work. I mailed myself copies of the files that started the problem earlier, and it worked as expected. If anyone can see a major flaw in this reasoning, let me know. If it looks like it should work and you'd like a copy of the C and COM files, also let me know. Marty Kuhrt............................................Email: marty@symark.com Developer/Technical Support Analyst..................Local Phone: 818 865-6100 Symark International..................................Free Phone: 800 234-9072 5655 Lindero Canyon Rd, Westlake Village, CA, 91362..........Fax: 818 889-1894