Article View: news.software.nntp
Article #74311Re: Cleanfeed config to allow HTML and binary attachments
From: John F. Morse
Date: Wed, 04 Oct 2006 01:45
Date: Wed, 04 Oct 2006 01:45
141 lines
6076 bytes
6076 bytes
Jeffrey M. Vinocur wrote:
>In article <O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>
>>I don't use the cleanfeed.local file ($config_dir => 'undef'), but
>>instead use just the filter_innd.pl (which is the cleanfeed.pl version).
>>
>>
>
>You did see this comment, right:
>
>##############################################################################
># WARNING: NO USER SERVICEABLE PARTS BELOW THIS LINE
># IF YOU WANT TO CHANGE SOMETHING, PLEASE USE cleanfeed.local
>##############################################################################
>
>
>(You don't have to use the whole big cleanfeed.local that comes
>as an example; you can make your own simple one.)
>
>
Yes, Jeff, I sure did, several times. I tested it and it works
regardless of this warning. The cleanfeed.local file was more of a demo,
and written for mostly an Italian site.
I modified the configuration file instead of using or creating the
cleanfeed.local approach. All I needed was to add six of the local
groups at the time (brisbee, computers, ..., local.test). It had these
areas very well documented, allowing me to simply add my groups to those
already in the file, as "...brisbee|computers|petchat|... etc.
It worked fine for me then, and included all kinds of other great
filtering"words" to reject unwanted messages.
When I renamed the groups to add the "xanadu." hierarchy, I had
forgotten the cleanfeed configuration I had modified earlier. A user
pointed out he couldn't post a HTML message. I checked, and sure enough,
the problem was my forgetting to change all six groups by adding the
"xanadu." to them.
Since the groups all were now within the xanadu. hierarchy, I edited the
cleanfeed configuration file to simply use "xanadu.*" or as it actually
needs to be, "^xanadu\." which should cover all of these local groups.
It did allow posting a message with an embedded (inline) image, which is
the preferred method I use, but it still failed for the user. I then
found out from him that his failure is when attaching an image, and this
was verified as failing for me.
So, it's an issue with attaching and not embedding HTML and/or an image.
>>What am I missing, where did I goof, or is there another place that is
>>rejecting attachments?
>>
>>
>
>I would find the corresponding error message (either from the
>newsreader if it will show it to you) or from the logs and then
>look through cleanfeed to see where it's generated.
>
>
The logs do not go into enough detail. Then there are at least two areas
in the "filter_innd.pl" which have something to do with binaries or
HTML. I posted these earlier. Neither give me a clue.
Here they are again:
Here are the parts I modified, with the added groups (xanadu.*) added as
"^xanadu\." on the ends:
### binaries allowed if groups match
bin_allowed => '^\w+\.binae?r|^alt\.sex\.pictures|^fur\.artwork'.
'|^alt\.anonymous\.messages$|^de\.alt\.dateien|^rec\.games\.bolo$'.
'|^comp\.security\.pgp\.test$|^sfnet\.tiedostot'.
'|^fido\.|^linux\.|^unidata|^xanadu\.',
<snip>
### HTML allowed here (if block_html or block_multi_alt is turned
on)
html_allowed => '^microsoft\.|^xanadu\.',
>>What does the "^" represent?
>>
>>
>
>The beginning. If you didn't have that, your pattern would match
>something like rec.arts.xanadu, which isn't what you intended.
>
>
OK. Thanks for this info.
>>Could this file simply use "xanadu.*" instead of "xanadu\." for a wildcard?
>>
>>
>
>If you don't escape the period, it will match any character, so
>your pattern would match groups like xanadufoo.misc, which isn't
>what you intended. If you really wanted you could write
>
> ^xanadu\..*$
>
>to be really explicit about what you're trying to match, but that
>wouldn't change the semantics at all.
>
>
OK, again, and thanks, again.
>The perlre manpage is the place to learn all of this, btw.
>
I did try to find this, but evidentially this Linux box does not have
the Perl man package. This is an old Lindows distro, and has little for
anything serious, and the CNR download and install is nowhere as good as
apt-get, plus Linspire likes to rename files to look more familiar with
previous Windows users.
I do have it on the Debian Linux box in the basement, where I downloaded
and installed it previously using apt-get. I will go down there tonight
and have a session with perlre and see what I can reap.
Thanks for this reminder -- I need to see what the $ is representing. ;-)
--
John
Technical Details
Message-ID:
<_mEUg.185118$QM6.167675@bgtnsc05-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!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net> <efr4hd$d6t$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <_mEUg.185118$QM6.167675@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: Cleanfeed config to allow HTML and binary attachments Date: Wed, 04 Oct 2006 01:45:30 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net> <efr4hd$d6t$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!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: xanadu.bbs@invalid.net Organization: Xanadu BBS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <efr4hd$d6t$1@puck.litech.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 141 NNTP-Posting-Host: 15fadca6356c23eee8f866e7e729d9b1 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1159926330 NNTP-Posting-Date: Wed, 04 Oct 2006 01:45:30 GMT