[Rspamd-Users] list symbols at command line?
Michael W. Lucas
mwl at mwl.io
Fri Feb 2 19:01:45 UTC 2024
On Wed, Jan 31, 2024 at 01:00:11PM +0200, Andrew Lewis via Users wrote:
> Hi Michael,
>
> On Tue, 2024-01-30 at 13:50 -0500, Michael W. Lucas wrote:
> > Is there a way to search for specific symbols and their meaning at
> > the
> > command line? Or to get a list of all symbols and their description?
>
> You can find that in WebUI, or with `curl
> http://127.0.0.1:11334/symbols`
Thanks.
For the archives:
If you want a convenient grep-able list of symbol names, weights, and
descriptions from the download above, here's the jq command.
$ jq -c '.[].rules[] | [.symbol,.weight,.description]' symbols.json > symbols.txt
==ml
--
Michael W. Lucas https://mwl.io/
author of: Absolute OpenBSD, SSH Mastery, git commit murder,
Absolute FreeBSD, Butterfly Stomp Waltz, TLS Mastery, etc...
### New books: DNSSEC Mastery, Letters to ed(1), $ git sync murder ###
More information about the Users
mailing list