honk/docs/hfcs.1

95 lines
2.6 KiB
Groff
Raw Normal View History

2019-10-09 20:30:55 +02:00
.\"
.\" Copyright (c) 2019 Ted Unangst
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate$
.Dt HFCS 1
.Os
.Sh NAME
.Nm hfcs
.Nd honk filtering and censorship system
.Sh DESCRIPTION
The honk filtering and censorship system,
.Nm hfcs ,
controls what messages are seen and how they are presented to the user.
2019-11-01 06:36:07 +01:00
Filter rules are based on a series of matches and actions.
2019-10-20 21:49:02 +02:00
It is accessed via the
.Pa filters
menu item.
2019-10-09 20:30:55 +02:00
.Pp
The following match types are possible.
2019-11-01 06:36:07 +01:00
All nonempty criteria must match.
2019-10-09 20:30:55 +02:00
.Bl -tag -width include-audience
.It Ar who
Match an actor or domain name.
Matches against
.Fa Ar actor
property.
2019-10-09 20:37:23 +02:00
.It Ar include audience
2019-10-09 20:30:55 +02:00
Previous match is applied against
.Fa to
and
.Fa cc
fields as well.
.It Ar text
Regular expression match against the post
.Fa content .
.It Ar is announce
Is announced (shared).
2019-11-01 06:36:07 +01:00
.It Ar announce of
Limit prevous match to only specified actor or domain name.
2019-10-09 20:30:55 +02:00
.El
.Pp
The following actions may be applied.
Multiple actions may be applied, but some are subsumed by others.
.Bl -tag -width tenletters
.It Ar reject
Reject this message entirely.
.It Ar skip media
Don't include images or attachments.
.It Ar hide
Remove this message from most feeds.
.It Ar collapse
Show only a short summary with click to view content.
.It Ar rewrite
Rewrite message content, using
.Ar replace
replacement text.
.El
.Pp
The
.Ar text
and
.Ar rewrite
fields are case insensitive word anchored regular expressions.
Specifically, an argument
.Ql re
will be automatically rewritten as
.Ql \\\b(?i:re)\\\b .
2019-11-01 06:36:07 +01:00
The
.Ar replace
text may refer to submatches using $1, etc.
2019-10-25 00:59:35 +02:00
.Pp
2019-11-21 08:46:37 +01:00
A post marked sensitive that does not otherwise contain a summary will
have an invisible summary of
.Dq unspecified horror
that can be matched against and will appear if the post is collapsed.
.Pp
2019-10-25 00:59:35 +02:00
An optional expiration may be specified as a duration.
XdYhZm for X days, Y hours, and Z minutes.
2019-10-09 20:30:55 +02:00
.Sh SEE ALSO
.Xr honk 1
.Sh CAVEATS
Not seeing is not erasing.