Article View: news.software.nntp
Article #74394Re: Cleanfeed config to allow HTML and binary attachments
From: Jeffrey M. Vinocur
Date: Tue, 17 Oct 2006 12:02
Date: Tue, 17 Oct 2006 12:02
60 lines
3954 bytes
3954 bytes
In article <%vXYg.74713$QZ1.58022@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: > >My balking was primarily (probably all) due to my looking at the two >Perl files and considering them as "configuration" files (files of options). Right, because Perl doesn't have a separate compilation stage to make you draw a clear distinction. But for cleanfeed, there is definitely source code (the file that says "no user-servicable parts below this line") and configuration, and it's probably best to maintain that. Oh, I thought of a #4, by the way. If you make your local config changes to the source code, you'll make it impossible to apply patches (like the one I wrote you to add mime_html_allowed) automatically, because the "patch" program won't recognize where the modifications should be made. >Let me show you what I actually have, and have been using for the past >few months (please keep an eye on my shell commands to determine where I >am). This is lengthy, but necessary to show what I have. In any reply, >please delete all but the first couple of lines of each file (so I can >tell which file is which). Okay, you're confused. The way the filtering infrastructure works is, INN uses whatever file is named filter_innd.pl in the $pathfilter directory. That file is free to reference other files as it desires, but INN itself knows nothing else. Cleanfeed has two files, one I'll call the "main" file (which says WARNING: NO USER SERVICEABLE PARTS BELOW THIS LINE in it) and one I'll call the "config" file that doesn't. (The defining feature of the config file is that somewhere in the middle it has a section called "sub local_config".) So when you use Cleanfeed, you "install" the main cleanfeed script by renaming it to filter_innd.pl and putting it in $pathfilter. You then edit that script to tell it where to keep its config files, and put the config file there, naming it cleanfeed.local. The main script -will- be looking in the location you provided for cleanfeed.local and using it. As far as I can tell, it looks like you've got the main script installed as filter_innd.pl, plus another copy (which will be completely ignored and you should probably stash away somewhere else to avoid confusion). Then you've got a config file that cleanfeed will never be able to find because it's not called cleanfeed.local. Remember that neither INN nor Cleanfeed is magic -- they're looking for files with specific names in specific locations, and having other stuff lying all over the place may convince you that it's doing something, but won't be used by anything in real life. -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<eh2go1$sg6$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mailReferences:
<O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net> <4WSYg.73790$QZ1.22699@bgtnsc04-news.ops.worldnet.att.net> <eh1bjb$d4c$4@puck.litech.org> <%vXYg.74713$QZ1.58022@bgtnsc04-news.ops.worldnet.att.net>Show Full Headers
Complete Article Headers
Message-ID: <eh2go1$sg6$1@puck.litech.org> Subject: Re: Cleanfeed config to allow HTML and binary attachments Date: Tue, 17 Oct 2006 12:02:09 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net> <4WSYg.73790$QZ1.22699@bgtnsc04-news.ops.worldnet.att.net> <eh1bjb$d4c$4@puck.litech.org> <%vXYg.74713$QZ1.58022@bgtnsc04-news.ops.worldnet.att.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 60 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1161086529 29190 66.218.0.75 (17 Oct 2006 12:02:09 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Tue, 17 Oct 2006 12:02:09 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)