🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74307

Re: Cleanfeed config to allow HTML and binary attachments

#74307
From: Jeffrey M. Vinocur
Date: Mon, 02 Oct 2006 13:34
50 lines
2728 bytes
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.)


>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.


>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.


>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.


The perlre manpage is the place to learn all of this, btw.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <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!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mail
References: <O%STg.165050$QM6.101199@bgtnsc05-news.ops.worldnet.att.net>

Show Full Headers
Complete Article Headers
Message-ID: <efr4hd$d6t$1@puck.litech.org>
Subject: Re: Cleanfeed config to allow HTML and binary attachments
Date: Mon, 02 Oct 2006 13:34:37 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <O%STg.165050$QM6.101199@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!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: 50
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1159796077 13533 66.218.0.75 (2 Oct 2006 13:34:37 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Mon, 2 Oct 2006 13:34:37 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)