Re: Action syntax/semantics

Fabian Keil <[email protected]> Sun, 12 Apr 2015 12:45:30 +0200
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
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).

> - Can action aliases take a parameter? I think the answer is no...

That's currently correct.
 
> - The filter (also external-filter, but I can't support that),
>   crunch-client-header, client-header-filter, client-header-tagger,
>   crunch-server-header, server-header-filter, and server-header-tagger
>   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.

Fabian

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

_______________________________________________
Ijbswa-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVKkzKAAoJEGkYIpGLojccmNgQAJAV02IMUosbtDsZLs3BNMNM
lajkAhLIFWK4Bp7EoF81eW9Po9nFVHB9cliM+CUp5hjGxWvSu6iHtoOrAQJXEReK
S+LHyIqq0ZqlwD5K3Upp/8JXlbx5+qH6+JTWFGAMDB0+I5rr4PgGoNmVzZ4FoeuG
txXtlsJEs7SlxpbVnkUL+LYkmRS7NG1wbbYUFn5arGJKPh39e0G3+9C0gA3ZJCRH
BqNaqw/8s51Z55h5dG19ipbV8YOcTf7PgPC3G+I6ACFqZVCNTrMzIHqePZxpqltN
uayYNy+fHawiK+Ao4QlYIR/0rf6CxoDlKxyLAPrf8Vnkmwixuvvzek1am/SJQz5g
p6aGMFom8q8zp79udrQSTfIoud9q0RpFooQ6tp1mCio9PVT+m33TWMAXoLMSzXuf
NeJQUvr3ay2FyVcaPpCiHHUYKGP/uky00mWrplL9GQB6pw0kJwr4HgnOOG2luo3S
97Bs0qTDtzLMmLOYlSTyHypC+U/SxO2lsfQAp7Kkl6EtfdUFpLSNeoSYeTQoGk0f
GPCsYtkQ5rsoQDp2P37kb5UR7FlL4NdAZ+FjerjLmsNblPKivB/sfJ9CxpI8+O9d
kNQuTorXcegG2wue6m9BJsPlSk88OvapVVREEyjojPK84/B1oaM/D++jV0GZF1C4
ch2TjzoP09g2uGYNxJAI
=YHTu
-----END PGP SIGNATURE-----