newt – network news transport protocol (NNTP) client

newt [ –f newsgroup ] [ –m mountpoint ] [ –p maxposts ]

Newt provides an interactive, text–based interface to NNTP articles served by nntpfs(4).

There are a number of options:
f    Load the specified newsgroup. Default is alt.test.
Directory where nntpfs is mounted. Default is /mnt/news.
Number of posts to display, up to and including the most recent post. Default is 30.

Newt starts by reading the list of messages in the newsgroup, printing out the number of messages, and then prompting for commands. The prompt itself represents the name of the group followed by the message number in the form of a file system path, relative to the mountpoint.

Commands, as in ed(1), are of the form `[range] command [arguments]'. The command is applied to each message in the (optional) range.

The address range can be:
address          to indicate a single message header.
address,address    to indicate a range of contiguous message headers.

The addresses can be:
number          to indicate a particular message.

The commands are:

Print message number.
b     Print the headers for the next ten messages.
e     Enter a new message, honoring the environment variable editor. Default is hold(1).
g newsgroup
Change to the specified newsgroup. The name of a group may be provided in dotted (alt.test) or path (alt/test) format.
h     Print the disposition, date, sender and subject line of the message. These lines are suitable for selecting and sending to the prompt, in order to print messages either singly or in aggregate.
helpPrint a summary of the available commands.
k [newsgroup]
Without an argument, k walks the directories under the current group and prints commands suitable for changing to each available sub–group. When provided with an argument, it instead walks the directories under the group specified by the argument.
kf regexp
Greps $home/lib/newsgroups for regexp and prints commands suitable for changing to each match.
p     Print the current message with minimal headers.
P     Print the raw message with full headers.
q     Quit.
r     Reply to the current message.
y     Synchronize message list with the server.
Run the command with the message body as standard input.
Run the command with the whole message as standard input.
Escape to the shell to do command.
Print the current message in quoted form, suitable for reply.

The environment variables $editor and $pager are honored.

$home/lib/newsgroups list of newsgroups, one per line



The list of available newsgroups offered by a given server may be quite large. This complicates walking the list over a slow Internet connection, and renders searching in real–time all but infeasible. Grepping a pre–generated newsgroups file is a compromise.

Newt first appeared in 9front (April, 2014).