Thread View: news.software.nntp
27 messages
27 total messages
Started by Brad Knowles
Tue, 10 Nov 1998 00:00
De-spamming a diablo newsfeed?
Author: Brad Knowles
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
20 lines
1378 bytes
1378 bytes
Folks,
I was wondering if anyone here had any direct experience in
de-spamming a diablo news router. The guy I'm replacing as news admin
here (he has plenty of other duties) has told me that he had previously
tried running cleanfeed with diablo, but that the server just couldn't
take the load.
Any suggestions? I don't suppose anyone knows whether or not Matt
Dillon did actually write the Diablo Tuning Guide I discovered that he'd
previously mentioned on news.software.nntp (via Dejanews)?
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Tue, 10 Nov 1998 00:00
Date: Tue, 10 Nov 1998 00:00
20 lines
1595 bytes
1595 bytes
In news.software.nntp article <brad-1011981913570001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote: :Folks, : : I was wondering if anyone here had any direct experience in :de-spamming a diablo news router. The guy I'm replacing as news admin :here (he has plenty of other duties) has told me that he had previously :tried running cleanfeed with diablo, but that the server just couldn't :take the load. : : Any suggestions? I don't suppose anyone knows whether or not Matt :Dillon did actually write the Diablo Tuning Guide I discovered that he'd :previously mentioned on news.software.nntp (via Dejanews)? I've never been able to run Cleanfeed successfully. It is just too darn slow in its standalone version. I suspect that's because it must really suck to have to read large messages with an interpreted language. ... JG
Re: De-spamming a diablo newsfeed?
Author: Andrew Gierth
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
14 lines
1247 bytes
1247 bytes
>>>>> "Joe" == Joe Greco <jgreco@ns.sol.net> writes: Joe> I've never been able to run Cleanfeed successfully. It is just Joe> too darn slow in its standalone version. I suspect that's Joe> because it must really suck to have to read large messages with Joe> an interpreted language. I suspect that the article reading loop in cleanfeed (which of course is only used in standalone mode) is significantly non-optimal. -- Andrew.
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
23 lines
1601 bytes
1601 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > Jeremy> The ideal thing would be for servers like Cyclone and Diablo > Jeremy> to have an embedded Perl. > > Unlikely. You've seen the problems with embedding it in innd, where > doing stuff like loading db modules tends to gronk the server. Sure, but all in all, I'd say it's a superior method. Problems with dynamic loading can be solved. > (Hint: have you tried an approach like setting $/ = "\r\n.\r\n" and > reading the whole article in one shot?) Yes, that's what I'm doing now. It still uses ~10% of one cpu in a dual-PII-300 Cyclone box, running flat out and cranked all the way up. -- Jeremy | jeremy@exit109.com "...your brain recognizes the pattern of light and dark made by a successful mail delivery." --Russ Allbery
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
24 lines
1843 bytes
1843 bytes
In news.software.nntp article <87g1bqliwb.fsf@erlenstar.demon.co.uk>, Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: :>>>>> "Joe" == Joe Greco <jgreco@ns.sol.net> writes: : : Joe> I've never been able to run Cleanfeed successfully. It is just : Joe> too darn slow in its standalone version. I suspect that's : Joe> because it must really suck to have to read large messages with : Joe> an interpreted language. : :I suspect that the article reading loop in cleanfeed (which of course :is only used in standalone mode) is significantly non-optimal. I haven't looked. diab-filter also does not do "early abort", which Cyclone is capable of. If a filter decides mid-article to reject an article, Cyclone allows it to send the response "early", at which point Cyclone will stop sending the article. For something like a binary article, where you may not be interested in 30000 lines of uuencoded data, early abort would be a real performance win. diab-filter doesn't do that. Don't know if Cleanfeed tries to do it. ... JG
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
17 lines
1395 bytes
1395 bytes
Joe Greco <jgreco@ns.sol.net> wrote: > diab-filter also does not do "early abort", which Cyclone is capable of. > If a filter decides mid-article to reject an article, Cyclone allows it > to send the response "early", at which point Cyclone will stop sending > the article. For something like a binary article, where you may not be > interested in 30000 lines of uuencoded data, early abort would be a real > performance win. diab-filter doesn't do that. Don't know if Cleanfeed > tries to do it. Nope. -- Jeremy | jeremy@exit109.com Cleanfeed spam filter - http://www.exit109.com/~jeremy/news/cleanfeed.html
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
27 lines
1948 bytes
1948 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > Joe> I've never been able to run Cleanfeed successfully. It is just > Joe> too darn slow in its standalone version. I suspect that's > Joe> because it must really suck to have to read large messages with > Joe> an interpreted language. > > I suspect that the article reading loop in cleanfeed (which of course > is only used in standalone mode) is significantly non-optimal. Yes, it is. I've made some sweeping changes in my current code which has not been released yet, which makes it a bit quicker and a lot more efficient. It still won't be as fast as running on INN, of course. Reading in the article from a pipe and parsing it just sucks, and is entirely the wrong way to do things. The ideal thing would be for servers like Cyclone and Diablo to have an embedded Perl. The next best thing would be a little C program that runs on the external filter interface, embeds Perl, and implements the superior INN-style filter interface. Presumably such a program could suck in articles and parse them faster than regular Perl code. -- Jeremy | jeremy@exit109.com "Everything you think you know is wrong." --Jack Chalker
Re: De-spamming a diablo newsfeed?
Author: Andrew Gierth
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
23 lines
1660 bytes
1660 bytes
>>>>> "Jeremy" == Jeremy <jeremy@exit109.com> writes: Jeremy> The ideal thing would be for servers like Cyclone and Diablo Jeremy> to have an embedded Perl. Unlikely. You've seen the problems with embedding it in innd, where doing stuff like loading db modules tends to gronk the server. Jeremy> The next best thing would be a little C program that runs on Jeremy> the external filter interface, embeds Perl, and implements Jeremy> the superior INN-style filter interface. Presumably such a Jeremy> program could suck in articles and parse them faster than Jeremy> regular Perl code. I doubt if the difference would be that great. (Hint: have you tried an approach like setting $/ = "\r\n.\r\n" and reading the whole article in one shot?) -- Andrew.
Re: De-spamming a diablo newsfeed?
Author: Richard Hernandez
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
854 lines
19023 bytes
19023 bytes
Jeremy (jeremy@exit109.com) wrote:
: The ideal thing would be for servers like Cyclone and Diablo to have
: an embedded Perl. The next best thing would be a little C program that
: runs on the external filter interface, embeds Perl, and implements the
: superior INN-style filter interface. Presumably such a program could
: suck in articles and parse them faster than regular Perl code.
: --
: Jeremy | jeremy@exit109.com
: "Everything you think you know is wrong." --Jack Chalker
You asked for it. No instructions, no time. Works for news and mail.
Works on NCR's MPRAS, Solaris Intel, Solaris Sparc, SunOS.
Edited to fit usenet.
***************************************************************************
COPYRIGHT 1998 <Richard "Rick" Hernandez, NCR Corporation>
All rights reserved,
You have a right to use, modify, or distribute this software for any
use provided that you keep this copyright notice with the software.
Use of the software for profit is specifically prohibited with out
the authors consent.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR, OR NCR CORPORATION, BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
LOSS OF USE, DATA, OR PROFITS, OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rick@pobox.com
***************************************************************************
Makefile
***************************************************************************
# if DNS support were included
# NCR 3.0 or greater
#CFLAGS = -g -DSVR4 -DSYSEXITSH -DUSE_DNS
#LIBS = -lsocket -lnsl -lresolv
#OBJS = gparser.o getcannon.o
# SVR4/SOLARIS
#CFLAGS = -g -DSVR4 -DUSE_DNS
#LIBS = -lsocket -lnsl -lresolv
#OBJS = gparser.o getcannon.o
# SunOS
#CFLAGS = -g -DSunOS -DUSE_DNS
#LIBS = -lnsl -lresolv
#OBJS = gparser.o getcannon.o compat.o
# else
OBJS = gparser.o
# SVR4 && NCR 3.0 or greater
CFLAGS = -g SVR4
# SunOS
CFLAGS = -g -DSunOS
# endif
gparser: $(OBJS)
$(CC) -o $@ $(OBJS)
***************************************************************************
gparser.c
***************************************************************************
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <strings.h>
#undef isspace
#define FROM 1
#define FROM_ 2
#define SENDER 3
#define REPLYTO 4
#define XREPLYTO 5
#define RETURNPATH 6
#define MAXDNAME 256
#define MAXHOSTS 20
#ifdef SVR4
# ifdef USE_DNS
extern char *findhostbyip(char *);
# endif
void listadd(char *);
#else
# ifdef SunOS
# ifdef USE_DNS
extern char *findhostbyip();
# endif
void listadd();
# endif
#endif
static char mime[8];
static char lastbyhost[80];
FILE *tfp, *tfp2;
int ckDNS = 0;
char list[MAXHOSTS][MAXDNAME];
void
trim(string)
char *string;
{
int i;
char *p, *b;
if (isspace(*string)) {
p=string;
b=string;
while (isspace(*p)) p++;
for (;*p;p++,b++) *b = *p;
*b = '\0';
}
for (i=strlen(string),i--;i >= 0 && isspace(*(string+i));i--)
*(string+i)='\0';
return;
}
void
lowercase(string)
char *string;
{
for (;*string;string++)
if (isalpha(*string) && isupper(*string)) *string = tolower(*string);
}
int
badIP(host)
char *host;
{
int a,b,c,d;
char *p, *q;
char tmphost[18];
if (strlen(host) > 17) return(1);
if (!strcmp(host, "[127.0.0.1]")) return(1);
if (!strcmp(host, "[0.0.0.0]")) return(1);
/* Drop []'s */
(void) strcpy(tmphost, host+1);
if (!(p = strchr(tmphost, ']'))) return(1);
*p = '\0';
/* quad one */
if (!(q = strchr(tmphost, '.'))) return(1);
*q = '\0';
q++;
a = atoi(tmphost);
/* quad two */
if (!(p = strchr(q, '.'))) return(1);
*p = '\0';
p++;
b = atoi(q);
q = p;
/* quad three */
if (!(p = strchr(q, '.'))) return(1);
*p = '\0';
p++;
c = atoi(q);
q = p;
/* quad four */
d = atoi(q);
/* IANA reserved experimental, private intranets,
broadcast address, etc. */
if (a == 10) return(1);
if (a == 172 && b >= 16 && b <= 31) return(1);
if (a == 192 && b == 168) return(1);
if (a >= 224) return(1); /* Not a possible email address */
return(0);
}
void
test4IP(host)
char *host;
{
int i, cnt;
char newname[18];
if (host[0] != '[') {
newname[0] = '[';
for (i = 1; *(host + i - 1) && i < 17; i++) {
newname[i] = *(host + i - 1);
switch(*(host + i - 1)) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
cnt++;
break;
case '.':
if (cnt > 0 && cnt < 4) {
cnt = 0;
} else { /* not an IP address */
return;
}
break;
default:
return; /* not an IP address */
}
}
newname[i++] = ']';
newname[i] = '\0';
(void) strcpy(host, newname);
} else if (!strchr(host, ']')) return;
}
char *
ckHost(host)
char *host;
{
int rc, stat, len;
char *name, *p;
static char hostname[BUFSIZ];
if (strchr(host, '@')) return(NULL);
if (!strchr(host, '.')) return(NULL);
if (strlen(host) < 4) return(NULL);
/* Need to have space for larger name */
(void) strcpy(hostname, host);
host = hostname;
test4IP(hostname);
if (hostname[0] == '[') {
if (rc = badIP(hostname)) {
return(NULL);
}
}
if (!ckDNS) {
lowercase(hostname);
return(host);
}
#ifdef USE_DNS
if (host[0] == '[') {
if ((p = strchr(host, ']')) == NULL) {
(void) fprintf(stderr, "%s: unbalanced '['\n", host);
return(NULL);
}
*p = '\0';
host++;
if ((name = findhostbyip(host)) == NULL) return(NULL);
if (!strchr(name, '.')) {
(void) strcpy(hostname, name); /* need space */
rc=dns_getcanonname(hostname,
sizeof(hostname),1,&stat);
if (rc) {
lowercase(hostname);
len = strlen(hostname);
if (hostname[len-1] == '.')
hostname[len - 1] = '\0';
return(hostname);
} else {
return(NULL);
}
}
lowercase(name);
len = strlen(name);
if (name[len-1] == '.') name[len - 1] = '\0';
return(name);
} else {
rc = dns_getcanonname(host, sizeof(hostname), 0, &stat);
if (rc) {
lowercase(host);
len = strlen(host);
if (host[len-1] == '.') host[len - 1] = '\0';
return(host);
} else {
return(NULL);
}
}
#endif
}
int
parse_path(line)
char *line;
{
char *a, *p;
trim(line);
while ((p = strchr(line, '!')) != NULL) {
*p = '\0';
(void) fprintf(tfp2, "path:\t%s\n", line);
p++;
line = p;
}
(void) fprintf(tfp2, "path:\t%s\n", line);
return(0);
}
int
parse_rcvd(rl)
char *rl;
{
int l, r;
char *p, *b, *e;
char *valid_host;
char byhost[256], fromhost[256], parenhost[256];
char leftparenhost[256], rightparenhost[256];
byhost[0] = '\0';
fromhost[0] = '\0';
parenhost[0] = '\0';
leftparenhost[0] = '\0';
rightparenhost[0] = '\0';
/* get last received by host bogus or not */
if ((b = strstr(rl, "by ")) == NULL) return(1);
b+=3;
if ((e = strchr(b, ' ')) != NULL) {
if (e-b > sizeof(lastbyhost)) {
(void) strncpy(lastbyhost, b, sizeof(lastbyhost));
lastbyhost[sizeof(lastbyhost)-1] = '\0';
} else {
(void) strncpy(lastbyhost, b, e-b);
lastbyhost[e-b] = '\0';
}
lowercase(lastbyhost);
} else return(1);
/* Get received by host */
if ((b=strstr(rl, " by ")) == NULL) return(1);
*b = '\0'; b+=4;
while (isspace(*b)) b++;
e = strchr(b, ' ');
*e = '\0';
if (valid_host = ckHost(b)) {
(void) strcpy(byhost, valid_host);
} else return(1);
/*
** if we don't want to bother with forged addresses
** throw in a return or something.
*/
p = rl;
if (!strncmp(p, "from ", 5)) { /* from_ is the first word */
b = strchr(p, ' ');
while (isspace(*b)) b++;
if ((p = strchr(b, ' ')) != NULL) {
*p = '\0'; p++;
while (isspace(*p)) p++;
}
if (valid_host = ckHost(b))
(void) strcpy(fromhost, valid_host);
}
/* handles ([9.9.9.9]) case */
if (p != NULL && *p == '(') {
p++;
/* unbalanced parens */
if ((e = strchr(p, ')')) == NULL) return(1);
*e = '\0';
if (e = strchr(p, ' ')) {
/* if more than 2 words in the ()'s */
*e = '\0'; e++;
if (valid_host = ckHost(p)) {
(void) strcpy(leftparenhost, valid_host);
}
if (b = strrchr(e, ' ')) {
b++;
if (valid_host = ckHost(b)) {
(void)strcpy(rightparenhost,
valid_host);
}
} else if (valid_host = ckHost(e)) {
(void) strcpy(rightparenhost, valid_host);
}
} else if (valid_host = ckHost(p)) {
/* only one word in the ()'s */
(void) strcpy(parenhost, valid_host);
}
}
/* output */
(void) fprintf(tfp2, "received:\t%s", byhost);
if (ckDNS) listadd(byhost);
if (strlen(parenhost)) {
(void) fprintf(tfp2, " (%s)", parenhost);
if (ckDNS) listadd(parenhost);
} else if ((l=strlen(leftparenhost)) || (r=strlen(rightparenhost))) {
if (strcmp(leftparenhost, rightparenhost)) {
if (l && r) {
(void) fprintf(tfp2,
" (%s %s)",
leftparenhost, rightparenhost);
if (ckDNS) listadd(leftparenhost);
if (ckDNS) listadd(rightparenhost);
} else {
if (l) {
(void) fprintf(tfp2,
" (%s)", leftparenhost);
if (ckDNS) listadd(rightparenhost);
} else {
(void) fprintf(tfp2,
" (%s)", rightparenhost);
if (ckDNS) listadd(rightparenhost);
}
}
} else {
(void) fprintf(tfp2, " (%s)", leftparenhost);
if (ckDNS) listadd(leftparenhost);
}
}
if (strlen(fromhost)) {
(void) fprintf(tfp2, " %s", fromhost);
if (ckDNS) listadd(fromhost);
}
(void) fprintf(tfp2, "\n");
return(0);
}
void
rfcjoin()
{
int first = 1;
char linebuf[BUFSIZ], *line;
linebuf[0] = '\0';
line = linebuf;
while (gets(line)) {
if (!strlen(line)) return;
if (isspace(line[0])) {
while(isspace(*line)) line++;
(void) fprintf(tfp, " ");
(void) fprintf(tfp, line);
} else {
if (first) {
first=0;
} else {
(void) fprintf(tfp, "\n");
}
(void) fprintf(tfp, line);
}
}
(void) fprintf(tfp, "\n");
return;
}
char *
findaddr(line)
char *line;
{
int i,j;
int openparen=0;
char *p, *b;
char *buf;
/* formats:
** "Last, First" <user@host.domain>,
** <user@host.domain> (Last, First),
** user@host.domain (Last, First),
** user,
** user@host,
** user@host.do.main
*/
buf = line;
if ((p=strchr(buf, '<')) != NULL) {
p++;
b=p;
if ((p=strchr(b, '>')) != NULL) {
*p = '\0';
if (strchr(b, ' ') || strchr(b, '\t')) return(NULL);
lowercase(b);
return(b);
}
}
if ((p=strstr(buf, "[SMTP:")) != NULL) {
p+=6;
b=p;
if ((p=strchr(b, ']')) != NULL) {
*p = '\0';
if (strchr(b, ' ') || strchr(b, '\t')) return(NULL);
lowercase(b);
return(b);
}
}
if ((p=strchr(buf, '(')) != NULL) {
for (i=0,j=0; i<strlen(buf); i++) {
if (buf[i] == '(') {
openparen=1;
continue;
}
if (openparen) {
if (buf[i] == ')') openparen=0;
continue;
}
buf[j++] = buf[i];
}
buf[j] = '\0';
}
if (strchr(buf, '(') || strchr(buf, ')')) {
(void) fprintf(stderr,
"Unbalanced or too many '()': %s\n", line);
return(NULL);
}
if ((p=strchr(buf, '"')) != NULL) {
for (i=0,j=0; i<strlen(buf); i++) {
if (buf[i] != '"') buf[j++] = buf[i];
}
buf[j] = '\0';
}
trim(buf);
if (strchr(buf, ' ') || strchr(buf, '\t')) return(NULL);
lowercase(buf);
return(buf);
}
int
parse_addr(key, line)
int key;
char *line;
{
int n;
char *p, *from_;
switch(key) {
case FROM_:
from_ = strtok(line, " ");
for (n = 0; p = strtok(NULL, " "); n++);
if (n != 5) {
(void) fprintf(stderr,
"Bad 'From ' line\n%s\n", line);
return(1);
}
lowercase(from_);
(void) fprintf(tfp2, "from\t%s\n", from_);
break;
case FROM:
if ((p=findaddr(line)) == NULL) {
return(1);
}
(void) fprintf(tfp2, "from:\t%s\n", p);
break;
case XREPLYTO:
if ((p=findaddr(line)) == NULL) {
return(1);
}
(void) fprintf(tfp2, "x-reply-to:\t%s\n", p);
break;
case REPLYTO:
if ((p=findaddr(line)) == NULL) {
return(1);
}
(void) fprintf(tfp2, "reply-to:\t%s\n", p);
break;
case SENDER:
if ((p=findaddr(line)) == NULL) {
return(1);
}
(void) fprintf(tfp2, "sender:\t%s\n", p);
break;
case RETURNPATH:
if ((p=findaddr(line)) == NULL) {
return(1);
}
(void) fprintf(tfp2, "return-path:\t%s\n", p);
break;
default:
(void) fprintf(tfp2,
"Huh? what happened, how come I got here?\n");
break;
}
return(0);
}
int
parse_key(line)
char *line;
{
char *p;
if (p = strchr(line, '\n')) *p = '\0';
p=line;
if ((p = strchr(line, ':')) == NULL) return(1);
p++;
if (*p != ' ') return(1);
*p = '\0';
p++;
lowercase(line);
(void) fprintf(tfp2, "%s\t%s\n", line, p);
return(0);
}
int
parse_to(line)
char *line;
{
char *a, *p;
while ((p = strchr(line, ',')) != NULL) {
*p = '\0';
p++;
while (isspace(*p)) p++;
if ((a=findaddr(line)) != NULL)
(void) fprintf(tfp2, "to:\t%s\n", a);
line = p;
}
trim(line);
if ((a=findaddr(line)) != NULL)
(void) fprintf(tfp2, "to:\t%s\n", a);
return(0);
}
int parse_type(line)
char *line;
{
char *p, *a, *b, *e;
if (e = strchr(line, '\n')) *e = '\0';
p = line;
while (b = strchr(p, ';')) {
*b = '\0'; b++;
if (*b != '\0') while (isspace(*b)) b++;
if (a = strchr(p, '=')) {
*a = '\0'; a++;
if (*a == '"') { /* remove parens */
a++;
if (e = strchr(a, '"')) *e = '\0';
}
lowercase(p);
(void) fprintf(tfp2, "content-type-%s:\t%s\n", p, a);
} else {
(void) fprintf(tfp2, "content-type:\t%s\n", p);
}
p = b;
}
if (*p != '\0' && strlen(p)) {
if (a = strchr(p, '=')) {
*a = '\0'; a++;
if (*a == '"') { /* remove parens */
a++;
if (e = strchr(a, '"')) *e = '\0';
}
lowercase(p);
(void) fprintf(tfp2, "content-type-%s:\t%s\n", p, a);
} else {
(void) fprintf(tfp2, "content-type:\t%s\n", p);
}
}
return(0);
}
void
keywords()
{
char line[BUFSIZ];
rewind(tfp);
while (fgets(line, BUFSIZ, tfp) != NULL) {
if (!strncmp("From ", line, 5)) {
parse_addr(FROM_, line+5);
continue;
}
if (!strncasecmp("From: ", line, 6)) {
parse_addr(FROM, line+6);
continue;
}
if (!strncasecmp("Sender: ", line, 8)) {
parse_addr(SENDER, line+8);
continue;
}
if (!strncasecmp("Reply-To: ", line, 10)) {
parse_addr(REPLYTO, line+10);
continue;
}
if (!strncasecmp("X-Reply-To: ", line, 12)) {
parse_addr(XREPLYTO, line+12);
continue;
}
if (!strncasecmp("Return-Path: ", line, 13)) {
parse_addr(RETURNPATH, line+13);
continue;
}
if (!strncasecmp("To: ", line, 4)) {
parse_to(line+4);
continue;
}
if (!strncasecmp("Cc: ", line, 4)) {
parse_to(line+4);
continue;
}
if (!strncasecmp("Received: ", line, 10)) {
parse_rcvd(line+10);
continue;
}
if (!strncasecmp("MIME-Version: ", line, 14)) {
if (strlen(line+14) < 8) (void) strcpy(mime, line+14);
else strcpy(mime, "1.0");
continue;
}
if (!strncasecmp("Content-Type: ", line, 14)) {
parse_type(line+14);
continue;
}
if (!strncasecmp("Path: ", line, 6)) {
parse_path(line+6);
continue;
}
parse_key(line);
}
}
int
addok(host)
char *host;
{
int i;
for (i = 0; i < MAXHOSTS; i++) {
if (list[i][0] == '\0') { return(i); }
if (!strcmp(list[i], host)) return(-1);
}
/* silent rejection of more than MAXHOSTNAMES */
return(-1);
}
void
listadd(host)
char *host;
{
int rcode, row;
char *b, *p;
char *mxhosts[MAXHOSTS + 1];
if ((row = addok(host)) >= 0) {
(void) strcpy(list[row], host);
#ifdef USE_DNS
if (b = strrchr(host, '.')) { /* find and skip last '.' */
*b = '\0';
if (p = strrchr(host, '.')) {
/*try do.main name search*/
*b = '.';
*p = '\0';
if (getmxrr(p+1, mxhosts, &rcode))
if ((row = addok(p+1)) >= 0)
(void) strcpy(list[row], p+1);
if (b = strrchr(host, '.')) {
/* try do.ma.in name search */
*p = '.';
if (getmxrr(b+1, mxhosts, &rcode))
if ((row = addok(b+1)) >= 0)
(void)strcpy(list[row],b+1);
}
}
}
#endif
}
}
void
dump()
{
char buf[BUFSIZ];
/* dump current file contents */
rewind(tfp2);
while(fgets(buf, sizeof(buf), tfp2)) {
fputs(buf, stdout);
fflush(stdout);
}
}
void
init()
{
char tmpfile[BUFSIZ];
char tmpfile2[BUFSIZ];
(void) sprintf(tmpfile, "/tmp/Aparser.%d", getpid());
(void) sprintf(tmpfile2, "/tmp/Bparser.%d", getpid());
if ((tfp=fopen(tmpfile, "w+")) == NULL) {
(void) fprintf(stderr, "failed open of %s\n", tmpfile);
exit(1);
}
(void) unlink(tmpfile);
if ((tfp2=fopen(tmpfile2, "w+")) == NULL) {
(void) fprintf(stderr, "failed open of %s\n", tmpfile);
exit(1);
}
(void) unlink(tmpfile2);
return;
}
int
main(argc, argv)
int argc;
char **argv;
{
int i;
if (argc == 2) {
#ifdef USE_DNS
if (!strcasecmp(argv[1], "nodns")) ckDNS = 0;
else ckDNS = 1;
#else
ckDNS = 0;
#endif
}
init();
rfcjoin();
keywords();
if (strlen(lastbyhost))
(void) fprintf(tfp2, "lastbyhost:\t%s\n", lastbyhost);
for (i = 0; i < MAXHOSTS; i++) {
if (list[i][0] == '\0') break;
(void) fprintf(tfp2, "MAILPATH: %s\n", list[i]);
}
dump();
return(0);
}
***************************************************************************
--
"I'm paid to have opinions, This isn't one of them." Rick Hernandez
email: rick@pobox.com web: http://www.pobox.com/~rick
Re: De-spamming a diablo newsfeed?
Author: Matt Dillon
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
36 lines
2107 bytes
2107 bytes
:In article <87af1yhw9t.fsf@erlenstar.demon.co.uk>,
:Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
:>>>>>> "Jeremy" == Jeremy <jeremy@exit109.com> writes:
:>
:> Jeremy> The ideal thing would be for servers like Cyclone and Diablo
:> Jeremy> to have an embedded Perl.
:>
:>Unlikely. You've seen the problems with embedding it in innd, where
:>doing stuff like loading db modules tends to gronk the server.
:>
:> Jeremy> The next best thing would be a little C program that runs on
:> Jeremy> the external filter interface, embeds Perl, and implements
:> Jeremy> the superior INN-style filter interface. Presumably such a
:> Jeremy> program could suck in articles and parse them faster than
:> Jeremy> regular Perl code.
:>
:>I doubt if the difference would be that great.
:>
:>(Hint: have you tried an approach like setting $/ = "\r\n.\r\n" and
:>reading the whole article in one shot?)
:>
:>--
:>Andrew.
What we really need to do is be able to pass a file descriptor and
offset/size information to the filter rather then try to stuff the
article to it. The filter could then mmap() the article.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: De-spamming a diablo newsfeed?
Author: Matt Dillon
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
33 lines
2153 bytes
2153 bytes
:In article <72f0rp$mpa@newsops.execpc.com>,
:Joe Greco <jgreco@ns.sol.net> wrote:
:>In news.software.nntp article <72cjf6$foc$1@east44.supernews.com>, Jeremy <jeremy@exit109.com> wrote:
:>:Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
:...
:>:The ideal thing would be for servers like Cyclone and Diablo to have
:>:an embedded Perl. The next best thing would be a little C program that
:>:runs on the external filter interface, embeds Perl, and implements the
:>:superior INN-style filter interface. Presumably such a program could
:>:suck in articles and parse them faster than regular Perl code.
:>
:>I was thinking of writing something like a "shared-memory interface" as
:>an alternative API. Would you be willing to work with me to support it?
:>
:>If so, I will rewrite diab-filter to work with it.
:>
:>... JG
Hmmm. It would mean doing an extra copy but that's still a lot
cheaper then pushing the article through a pipe. I like it!
You will have to used a fixed-size shared memory segment,
truncating larger articles, but that shouldn't cause a problem
with the filter. I wouldn't make the shared segment larger
then 100K or so.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
58 lines
3499 bytes
3499 bytes
In news.software.nntp article <72ctd4$8is$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote: ::In article <87af1yhw9t.fsf@erlenstar.demon.co.uk>, ::Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: ::>>>>>> "Jeremy" == Jeremy <jeremy@exit109.com> writes: ::> ::> Jeremy> The ideal thing would be for servers like Cyclone and Diablo ::> Jeremy> to have an embedded Perl. ::> ::>Unlikely. You've seen the problems with embedding it in innd, where ::>doing stuff like loading db modules tends to gronk the server. ::> ::> Jeremy> The next best thing would be a little C program that runs on ::> Jeremy> the external filter interface, embeds Perl, and implements ::> Jeremy> the superior INN-style filter interface. Presumably such a ::> Jeremy> program could suck in articles and parse them faster than ::> Jeremy> regular Perl code. ::> ::>I doubt if the difference would be that great. ::> ::>(Hint: have you tried an approach like setting $/ = "\r\n.\r\n" and ::>reading the whole article in one shot?) ::> ::>-- ::>Andrew. : : What we really need to do is be able to pass a file descriptor and : offset/size information to the filter rather then try to stuff the : article to it. The filter could then mmap() the article. This fails because it assumes that the article has been written to disk. I'd been intending to write an extension to diab-filter for quite some time now, since I feel relatively certain that the big bottleneck is latency caused by forcing the articles through an IPC pipe, thanks to additional context switching, etc. What I'd like is to see an alternative API where a shared memory segment was defined by the server, the filter is spawned, and the server simply lays down an int to specify length followed by whatever IPC handshake data is necessary and then the article. Probably 8 bytes plus a N-MB shmem segment (I usually use N=2). Then the server merely copies its article to the segment, signals "go" to the filter, and waits for reply. There should be one context switch, and the article is instantly available as a char * buffer to the filter. Optimizations on each side might allow for the article to _not_ have to be copied into/outof the shared memory segment, but for me, even a memcpy() is sufficiently fast. I will write a reference implementation (a diab-filter replacement) if Jeremy wants to climb on board. It would even be attractive to replace that ugly stuff in INN with such an API, and if we could get Highwind to do it too, then INN/Diablo/Cyclone would finally have a common filter API. I'd like to see INN support the pipe stuff too. ... JG
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
12 lines
1058 bytes
1058 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
> I was thinking of writing something like a "shared-memory interface" as
> an alternative API. Would you be willing to work with me to support it?
Sure.
--
Jeremy | jeremy@exit109.com
"Bunch of savages in this town!" --Dante ("Clerks")
Re: De-spamming a diablo newsfeed?
Author: Matt Dillon
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
38 lines
2269 bytes
2269 bytes
:In article <brad-1311980053340001@dialup480.brussels.skynet.be>,
:Brad Knowles <brad@shub-internet.org> wrote:
:>In article <72fes2$4ks$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote:
:>
:>> You will have to used a fixed-size shared memory segment,
:>> truncating larger articles, but that shouldn't cause a problem
:>> with the filter.
:>
:> Awright, time for me to demonstrate my ignorance again.
:>
:> Couldn't you do articles in chunks via this method? If each chunk was
:>no more than 2MB in size, you might have to do several context switched
:>around before you'd passed an entire large message, but you should be able
:>to push the whole thing through, right?
:>
:> I mean, it should just be a matter of checking the return code from
:>the other end which means "I'm not done yet, feed me another chunk",
:>right?
:>
:>
:> This seems patently obvious to me, so since no one else has mentioned
:>it, I'm obviously missing something. Could you fill me in?
:>
:>--
:>Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
:> <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
Why waste the cpu ? If the filter can't figure it out in the first
100K, it will not have been a very good filter.
-Matt
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
19 lines
1344 bytes
1344 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
> I will write a reference implementation (a diab-filter replacement) if
> Jeremy wants to climb on board. It would even be attractive to replace
> that ugly stuff in INN with such an API,
Hey, I rather like the ugly stuff in INN...
> I'd like to see INN support the pipe stuff too.
Why on earth would you want to do that?
--
Jeremy | jeremy@exit109.com
"I should add that this is not a page, but a newsgroup, and one should
not post to things that one cannot identify."
--Wednesday
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Thu, 12 Nov 1998 00:00
Date: Thu, 12 Nov 1998 00:00
31 lines
2283 bytes
2283 bytes
In news.software.nntp article <72cjf6$foc$1@east44.supernews.com>, Jeremy <jeremy@exit109.com> wrote: :Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: : :> Joe> I've never been able to run Cleanfeed successfully. It is just :> Joe> too darn slow in its standalone version. I suspect that's :> Joe> because it must really suck to have to read large messages with :> Joe> an interpreted language. :> :> I suspect that the article reading loop in cleanfeed (which of course :> is only used in standalone mode) is significantly non-optimal. : :Yes, it is. I've made some sweeping changes in my current code which has :not been released yet, which makes it a bit quicker and a lot more :efficient. It still won't be as fast as running on INN, of course. :Reading in the article from a pipe and parsing it just sucks, and is :entirely the wrong way to do things. : :The ideal thing would be for servers like Cyclone and Diablo to have :an embedded Perl. The next best thing would be a little C program that :runs on the external filter interface, embeds Perl, and implements the :superior INN-style filter interface. Presumably such a program could :suck in articles and parse them faster than regular Perl code. I was thinking of writing something like a "shared-memory interface" as an alternative API. Would you be willing to work with me to support it? If so, I will rewrite diab-filter to work with it. ... JG
Re: De-spamming a diablo newsfeed?
Author: BARRY BOUWSMA IS A PEDOPHILE
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
44 lines
3254 bytes
3254 bytes
On 12 Nov 1998, Matt Dillon wrote: > :>> You will have to used a fixed-size shared memory segment, > :>> truncating larger articles, but that shouldn't cause a problem > :> > :> Couldn't you do articles in chunks via this method? If each chunk was > > Why waste the cpu ? If the filter can't figure it out in the first > 100K, it will not have been a very good filter. So watch the spammers and the HipCrimerz attempt to thwart this advance in technology by posting a multipart message with the first part some hash-busting attachment (to be hidden or converted by a MIME-aware reader) with their spamlets after the first 100k, which will show up in raw blazing colour at no performance penalty, depending on access method. I'm about to switch off filtering on large binaries anyhows in code, as I've determined I'm taking a serious performance hit processing them (I measured that it takes 30ms per article just to call the code in perl.c even if I don't do anything with perl itself for the large binariez; if I actually do the works by filtering said article, I spend more than 1/3 of my time just doing the filtering, which could be better spent on writing articles or unlinking them before they hit the disk). I haven't seen a serious gain by filtering, with the number of these large posts being relatively small, it's probably mostly the stealth binariez froups that would see a difference, and since our lusers can't post binariez to these froups, I'm not sure it's worth it to make sure alt.als remains a text-only group for readers. Like I've mentioned to Jeremy before, I just don't see filtering able to scale, with the time needed increasing with filter complexity and article length, and the increasing overall volume of copyright infringements. But maybe it's just that the 486 with 16M RAM and an IDE spool that worked so well a year ago isn't capable of filtering a feed. I'm looking to move as much of the article processing as possible to before calling perl, since my gut feeling is that it should be a bit faster to do the most common things in C, rather than passing everything to perl. There are significant drawbacks to this hardcoding, but if I can spend more time scribbling over the disks, it might be worth it...
Re: De-spamming a diablo newsfeed?
Author: Brian Edmonds
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
16 lines
2335 bytes
2335 bytes
Russ Allbery <rra@stanford.edu> writes: > Or even better, an alternate filter sub that's called for articles > above a given byte size that just gets the byte size and the headers, > not the body. I'd be happier with at least a chunk of the body. Most of my body sensitive filters only operate on the first 4k of the body anyway, so if I didn't have to substr that off from the whole it would be nice. Tastes great, less filling. -- o Brian Edmonds <bedmonds@cs.ubc.ca>, Team Jubal Mech Labs \\_/\_, Moderator: rec.arts.anime.creative, rec.music.info/reviews (*) (*) Are you tired of spam? Visit http://www.spam.abuse.net/spam/
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
20 lines
1442 bytes
1442 bytes
In news.software.nntp article <yln25vakav.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: :Joe Greco <jgreco@ns.sol.net> writes: : :> I like a least-common-denominator. The INN perl stuff doesn't strike me :> as that. : :But it's a hell of a lot more efficient. And for Usenet news servers, :that matters. So I'll scold you for a second time this morning :-) It doesn't _have_ to be a this _or_ that decision. However, since Diablo/Cyclone/Typhoon and I think the Maxwell NNTPRelay stuff all use the Highwind filter API, it's foolish for INN to play the odd-one-out. ... JG
Re: De-spamming a diablo newsfeed?
Author: Joe Greco
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
23 lines
1492 bytes
1492 bytes
In news.software.nntp article <72fmrh$j02$1@east44.supernews.com>, Jeremy <jeremy@exit109.com> wrote: :Joe Greco <jgreco@ns.sol.net> wrote: : :> I will write a reference implementation (a diab-filter replacement) if :> Jeremy wants to climb on board. It would even be attractive to replace :> that ugly stuff in INN with such an API, : :Hey, I rather like the ugly stuff in INN... Tough. You'll get over it. :> I'd like to see INN support the pipe stuff too. : :Why on earth would you want to do that? Because it allows for people to write _portable_ filters. I like a least-common-denominator. The INN perl stuff doesn't strike me as that. ... JG
Re: De-spamming a diablo newsfeed?
Author: Jeremy
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
21 lines
1455 bytes
1455 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
> It doesn't _have_ to be a this _or_ that decision.
>
> However, since Diablo/Cyclone/Typhoon and I think the Maxwell NNTPRelay
> stuff all use the Highwind filter API, it's foolish for INN to play the
> odd-one-out.
Since everyone uses Windows, it's foolish for us Unix weenies to play
the odd-one-out. :)
I really think the INN interface is superior, and I'd hate to lose it.
I'd rather see the other systems support that one.
--
Jeremy | jeremy@exit109.com
"I should add that this is not a page, but a newsgroup, and one should
not post to things that one cannot identify."
--Wednesday
Re: De-spamming a diablo newsfeed?
Author: Brad Knowles
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
28 lines
1930 bytes
1930 bytes
In article <72fes2$4ks$1@flea.best.net>, dillon@best.net (Matt Dillon) wrote:
> You will have to used a fixed-size shared memory segment,
> truncating larger articles, but that shouldn't cause a problem
> with the filter.
Awright, time for me to demonstrate my ignorance again.
Couldn't you do articles in chunks via this method? If each chunk was
no more than 2MB in size, you might have to do several context switched
around before you'd passed an entire large message, but you should be able
to push the whole thing through, right?
I mean, it should just be a matter of checking the return code from
the other end which means "I'm not done yet, feed me another chunk",
right?
This seems patently obvious to me, so since no one else has mentioned
it, I'm obviously missing something. Could you fill me in?
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: De-spamming a diablo newsfeed?
Author: Jeff Garzik
Date: Sun, 15 Nov 1998 00:00
Date: Sun, 15 Nov 1998 00:00
20 lines
1408 bytes
1408 bytes
Russ Allbery wrote: > > Joe Greco <jgreco@ns.sol.net> writes: > > > I like a least-common-denominator. The INN perl stuff doesn't strike me > > as that. > > But it's a hell of a lot more efficient. And for Usenet news servers, > that matters. Who says you have to use pipes and do ugly data copying all over the place? Define a standard shm structure and key, and have all the filters and servers optionally talk to that. We can even have the servers pass us parsed headers and derived values, to reduce duplicate of effort. Jeff
Re: De-spamming a diablo newsfeed?
Author: Fluffy
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
32 lines
2442 bytes
2442 bytes
On 30 Nov 1998, Russ Allbery wrote:
> Fluffy <meowing@banet.net> writes:
{cutting memcpy stuff out of INN perl filtering}
> > Yeah, this could be done, but not without risk. If the filter script or
> > some underlying bit of perl magic decides to modify that article buffer
> > during the filtering phase, innd could become very, very upset.
>
> Might be worth it for the speed, though. Just tell filter authors Don't
> Do That.
Hmmm. Perl's memory manageent is casual enough where that Just Might
Work. Map an SV onto the body's buffer, and stand back.
> Of course, if you do whitespace munging in your MD5 filter, or drop the
> last line of the article, you end up having to make a copy anyway.
Yeah, but I think it could still eliminate a step.
Another variation on the themes already discussed: what if the headers
keep getting passed as now, and body byte and line counts get added to the
hash (I'm figuring that the lines are quicker to count while we're still
in C)? If you decide you still want to look at the body after scanning
the headers and body stats, you can grab it with a callback, or even use
the potentially dodgy SV trick above.
Hmmm. Good thing I wasn't planning on being able to sleep tonight anyway.
Re: De-spamming a diablo newsfeed?
Author: Fluffy
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
13 lines
1527 bytes
1527 bytes
On 13 Nov 1998, Russ Allbery wrote: > I wonder if there's a way of using INN's buffer directly from inside > Perl rather than doing the copy. (Of course, it's also possible that > I'm not clear on how this works.) Yeah, this could be done, but not without risk. If the filter script or some underlying bit of perl magic decides to modify that article buffer during the filtering phase, innd could become very, very upset.
Re: De-spamming a diablo newsfeed?
Author: Fluffy
Date: Tue, 01 Dec 1998 00:00
Date: Tue, 01 Dec 1998 00:00
19 lines
2150 bytes
2150 bytes
Russ Allbery <rra@stanford.edu> wrote: > > If you decide you still want to look at the body after > > scanning the headers and body stats, you can grab it with a callback, or > > even use the potentially dodgy SV trick above. > > I'm already doing that for Lines, by the simple expedient of enabling the > off-by-default option in INN to reject any article whose Lines header > deviates from the actual length of the article by more than four lines. Yup, the counter's already in there, that's right. I'm really thinking though, of passing the line and byte counts to the filter for a slightly different reason, namely to decide whether it's worth the trouble to even look at the body. That is, if the headers alone tell us enough to make a keep/reject decision, or the body's just too plain big, that step can be skipped.
Re: De-spamming a diablo newsfeed?
Author: John Payne
Date: Tue, 08 Dec 1998 00:00
Date: Tue, 08 Dec 1998 00:00
23 lines
2331 bytes
2331 bytes
On 30 Nov 1998 21:49:25 -0800, Russ Allbery <rra@stanford.edu> wrote:
>Fluffy <gerglery@usa.net> writes:
>
>> Yup, the counter's already in there, that's right. I'm really thinking
>> though, of passing the line and byte counts to the filter for a slightly
>> different reason, namely to decide whether it's worth the trouble to
>> even look at the body. That is, if the headers alone tell us enough to
>> make a keep/reject decision, or the body's just too plain big, that step
>> can be skipped.
>
>Right. I like that idea a lot. (For example, the way my filters work,
>there's really no reason to pass the body of the article into the filters
>for most posts in binary newsgroups, and saving the overhead of doing so
>would probably speed up the filters quite a bit.)
So we'd have a callback to get the body?
--
John Payne http://www.sackheads.org/jpayne/ john@sackheads.org
Sarcasm by request Fax: +44 870 0547954
My mail provider doesn't welcome UBE - http://www.sackheads.org/uce/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads