SCRIBO(1) | General Commands Manual | SCRIBO(1) |
scribo
—
email-based gopherlog generator
scribo |
[-h ] [-a
address] [-b
basedir] [-d
datefmt] [-x
command] [file]
|
scribo
turns emails into a gopherlog,
(also named "rlog", or "phlog").
Each mail will be parsed, and written out in plain text. The subject and date of the email are extracted from the headers (according to rfc5322), and used to add a title, and date to each entry.
Emails are read from stdin by default, or file if specified.
-h
-a
address-b
basedirscribo
will try to change to this directory, and
stop processing if it cannot change to this directory, or write files into
it.-d
datefmt-x
commandCall scribo
from an
aliases(5) file:
name+rlog@domain.tld |/usr/local/bin/scribo -b /var/gopher/rlog -a name@domain.tld -x "fmt -w 69"
Every mail received at name+rlog@domain.tld will update the gopher log in /var/gopher/rlog. Every entry will be filtered through fmt(1) to limit text width at 69 chars (for sweet gopher rendering).
To write logs as a specific user, configure the forward(5) file of that user. In aliases(5):
rlog@domain.tld user
Then call scribo
from the user's .forward
file, located at ~user/.forward :
"|/usr/local/bin/scribo -b ~/public_gopher"
SHELL
-c
flag to
pass the command string.Willy Goiffon <dev@z3bra.org>
2020-09-09 | POSIX.1-2017 |