Thread View: news.software.nntp
5 messages
5 total messages
Started by Andrew Gierth
Sun, 05 Apr 1998 00:00
Re: A Rant
Author: Andrew Gierth
Date: Sun, 05 Apr 1998 00:00
Date: Sun, 05 Apr 1998 00:00
34 lines
2524 bytes
2524 bytes
[followups] >>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes: > William P Setzer <wsetzer@babylon5.unity.ncsu.edu> writes: >> Yes I am. I was under the impression that nnrpd/filter_post() and >> innd/filter_art() acted independently, at least as far as post >> injection. The fact that they don't pretty much shoots my argument in >> the foot. Oh well, it was a nice foot while it lasted. Russ> It's also pretty trivial to modify filter_art() into Russ> filter_post(). It's hard to save state to do MD5 and the like, Russ> but Dave Hayes' exponential backoff stuff that's being rolled Russ> into 1.8 may help with that aspect of things. Not sure how useful that is. The advantage of doing stuff like MD5 body checks in filter_art rather than filter_post is that it automatically copes with things like multiple connections, multiple logins (which Mr. 800PHONESEX is very fond of), people who spam through several ISPs simultaneously, etc. I'm not happy with the interface for filter_post though. As soon as you try and extend it, for example to make *all* the headers available rather than just the standard ones, or to make the headers writable, you end up with issues over header-case, ordering, and duplicate headers. I'd prefer to see the headers passed in just as an array, either an array of strings "Header: value" or an array of arrays, ["Header" "value"]. -- Andrew.
Re: A Rant
Author: Russ Allbery
Date: Sat, 04 Apr 1998 00:00
Date: Sat, 04 Apr 1998 00:00
20 lines
1495 bytes
1495 bytes
Jeremy <jeremy@exit109.com> writes: > If you make the history a db file, you can have filter_post open, lock, > read, modify, and close on each post. Then your history is persistent > and systemwide. I'm not sure how well it would scale though. Not well. For one thing, you're loading a dynamic library for a connection the first time they post, which is going to take a bit. For another thing, locking is inherently evil just in general. For a third thing, you have to worry about the type of locking you're doing, breaking dotlocks if you use them, etc. Andrew's got a good point; just dealing with the multiple-post problem in INN's filter is probably the best move. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: A Rant
Author: Russ Allbery
Date: Sun, 05 Apr 1998 00:00
Date: Sun, 05 Apr 1998 00:00
25 lines
1639 bytes
1639 bytes
Jeremy <jeremy@exit109.com> writes: > I was just using flock when I was playing around. I keep forgetting how > to flock a tied hash db file, but I think it's in the FAQ or > something. :) Yeah, basically you open it twice (once with tie and once yourself) and flock the one you opened yourself. I think that may be improving in later versions of DB_File, but that method does work. I'm a bit worried about the overhead, but probably unnecessarily. > But it doesn't automatically send you email when someone gets frisky. > Or silently send their posts to /dev/null, or spool them so you can look > at them yourself, or any of the other fun stuff you could have with a > local spam detector. True. Although there's no reason why it couldn't; you just have to have a way of determining if the post is local.... -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: A Rant
Author: Jeremy
Date: Sun, 05 Apr 1998 00:00
Date: Sun, 05 Apr 1998 00:00
25 lines
1875 bytes
1875 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: > Russ> It's also pretty trivial to modify filter_art() into > Russ> filter_post(). It's hard to save state to do MD5 and the like, > Russ> but Dave Hayes' exponential backoff stuff that's being rolled > Russ> into 1.8 may help with that aspect of things. > > Not sure how useful that is. The advantage of doing stuff like MD5 > body checks in filter_art rather than filter_post is that it > automatically copes with things like multiple connections, multiple > logins (which Mr. 800PHONESEX is very fond of), people who spam > through several ISPs simultaneously, etc. If you make the history a db file, you can have filter_post open, lock, read, modify, and close on each post. Then your history is persistent and systemwide. I'm not sure how well it would scale though. I played with something like this (very crude) briefly but haven't gotten around to looking seriously at it. -- Jeremy | jeremy@exit109.com "Never tell me the odds." --Han Solo
Re: A Rant
Author: Jeremy
Date: Sun, 05 Apr 1998 00:00
Date: Sun, 05 Apr 1998 00:00
25 lines
1730 bytes
1730 bytes
Russ Allbery <rra@stanford.edu> wrote: > Not well. For one thing, you're loading a dynamic library for a > connection the first time they post, which is going to take a bit. For > another thing, locking is inherently evil just in general. For a third > thing, you have to worry about the type of locking you're doing, breaking > dotlocks if you use them, etc. I was just using flock when I was playing around. I keep forgetting how to flock a tied hash db file, but I think it's in the FAQ or something. :) > Andrew's got a good point; just dealing with the multiple-post problem in > INN's filter is probably the best move. But it doesn't automatically send you email when someone gets frisky. Or silently send their posts to /dev/null, or spool them so you can look at them yourself, or any of the other fun stuff you could have with a local spam detector. -- Jeremy | jeremy@exit109.com "Do you think a princess, and a guy like me..." --Han Solo
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