storage.conf: Using "flag" as a storage key
cbiedl at gmx.de
Tue Jun 7 08:38:09 UTC 2005
Russ Allbery wrote...
> It's not currently possible to do this. It's certainly something that
> would be desirable to add, although I'm not sure the best general way to
> do it. I'd really eventually like to have a more generalized tagging
> engine that would allow the filtering logic to apply any of a variety of
> tags to articles, and then use that tag information in both newsfeeds and
> the storage subsystem, but that's a larger project.
Funny enough, I'm thinking of quite the same things: Having the ability
to attach several flags to each article. These flags would include
"cleanfeed didn't like it" and "A cancel message for that article has
been received"; they could be used for storage, newsfeeds and even
reading: The news admin can read everything and decide to locally
un-cancel an article, or grant "uncensored" access to those users who
really want to read all the junk.
The obvious place to store such information was another column in the
history file - thus making up/downgrade very difficult and breaking
zillions of scripts out there. Including mine. Well, in INN 3.0 then ...
I'd also modify the perl/python filter (besides renaming it to
"embedding") in order to not simply return a boolean flag but a bunch of
states like "drop it", "drop it but do not block in history",
"accept", "accept but use 'foo' as a storage key", "retry later" etc.pp.
> I probably won't get a chance to work on anything like this until after
> the storage API is redesigned. If you come up with something in the
> meantime, I'd be inclined to accept it since it's likely that the config
> files and the like will need to go through an upgrade process anyway and
> we can fiddle with the way it's specified then.
Well, I'm glad to tell that I'll have access to a fast computer that will
serve as a transit feeder in the future but with a longish test period
before that. It will receive a not-really-non-binary full-feed at no
extra cost. Writing a patch for my question is on the list of things to
do during that time.
More information about the inn-workers