Re: Action syntax/semantics
Gregory Seidman <[email protected]> Sun, 12 Apr 2015 10:04:54 -0400
| Newsgroups | gmane.comp.web.privoxy.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 12, 2015 at 12:45:30PM +0200, Fabian Keil wrote: > Gregory Seidman <[email protected]> wrote: > > > I'm working on a Firefox addon to reimplement Privoxy functionality. > > Yes, I know there are various addons that do various things Privoxy > > does, but my goal is to be able to import/export valid Privoxy .action > > and .filter files (though, of course, external filters and a few actions > > can't be supported). To do so, I need to be sure I understand the syntax > > and semantics. So, some questions: > > > > - Does any action OPTIONALLY take a parameter? In particular, is the > > parameter to the block action required? > > In general, parameters are documented to be required but for some > actions missing parameters will merely result in an error message > but are otherwise accepted for backwards compatibility. > > The block action is (currently) one of them, but this may change > in the future (as the block reason was introduced years ago). Are there any others? I'm trying to follow Postel's Law and be liberal in what I accept, so I don't want to reject files the real Privoxy accepts. [...] > > actions all claim to be "Parameterized" in the documentation > > <http://www.privoxy.org/user-manual/actions-file.html>, but aren't they > > actually "Multi-value" in that more than one filter or tagger of the > > same type (but with different parameters) can be applied to a matched > > connection? > > Indeed. Thanks for pointing this out, I'll look into fixing this. Excellent, thank you for the clarifications. Also, while I'm at it, thanks for the hard work. I've been using Privoxy since it was JunkBuster, and it's been great. I'm only working on a browser implementation because I'm browsing more and more HTTPS sites that Privoxy can't (and shouldn't) proxy and clean up. > Fabian --Greg ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF