NNPOST(1)

✨ NNPOST(1) β€” the post-news glow-up ✨

okay bestie, real talk: this is nnpost, part of the nn news crew πŸ’–


🌸 NAME 🌸

nnpost β€” post news articles (nn). yeah that's it, that's the whole vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

nnpost [ -dksy string ] [ -f file ] [ -p ] [ group... ]

πŸ’… DESCRIPTION πŸ’…

so nnpost is what you use when you wanna post brand new articles through nn's normal interface, but you do not want to actually enter nn in reading mode. like, we're posting, not scrolling. main character energy only πŸ‘‘

when it starts up it reads the init file, and then it straight-up just runs nn's :post command. no detours, no small talk, instant slay ✨

then it's gonna prompt you for a whole lil to-do list: a (comma-separated) list of news groups, the article subject, a list of keywords, a summary, and the distribution of the article. and guess what β€” every single one of those prompts can also be handed over via command line options or arguments, as described down below. your choice, girl πŸ’…

when it's prompting you for "Newsgroup:", here's the tea:

  • type ? as the very first key β†’ nnpost lists all the known news groups and their purpose (if that info is available, no cap)
  • type / followed by a word or a regular expression β†’ you get a (much) shorter listing that only has the groups whose name and/or purpose description matches that regular expression. obsessed with a filtered feed 😌
  • when you're paging through either list, you can type q to quit the listing. bye bye πŸ‘‹

if you specify a source file with -f, that file gets used as the initial article body. and if you ALSO throw in the -p option? the article gets posted directly, no editing at all. straight to the feed, periodt πŸ”₯

nnpost can also do unattended postings β€” like, it posts all by itself β€” if you give it enough arguments on the command line to build up the header and the body of the article. the required arguments are:

  • one or more newsgroups
  • a subject (-s)
  • a source file (-f)
  • a distribution (-d)
  • and the -p option

any other fields you didn't specify (like keywords, for example) just won't be included in the header. not invited to the party, lowkey πŸ₯² and heads up: the contents of the news-header variable in the init file will be included in the header. it always shows up. iconic behavior fr fr.


✨ OPTIONS ✨

  • -d distribution β€” use the specified distribution for the article. that's the distribution, bestie, put it where it belongs πŸ“¬
  • -k "keywords" β€” associate the specified keywords with the article. keyword girlies rise 🏷️
  • -s "subject" β€” use the specified subject for the new article. subject line = first impression, make it cute πŸ’–
  • -y "summary" β€” include the given summary in the article header. a lil TL;DR moment, we love her πŸ“
  • -f file β€” read the article body from the specified file. body from a file, no typing required 😌
  • -p β€” post the article specified with -f without editing. no preview, no second thoughts, just send it πŸš€
ngl bestie, -p means it posts with zero editing. if your -f file isn't right, that's what goes out. be sure before you yeet it πŸ’€

πŸ¦‹ FILES πŸ¦‹

  • ~/.nn/init β€” the control variables for nnpost. this is where the settings live, protect her 🫢

🌈 SEE ALSO 🌈

  • nn(1) β€” the whole nn family, go say hi πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Kim F. Storm, Texas Instruments A/S, Denmark E-mail: storm@texas.dk


and that's the page, bestie!! this whole thing came to you from the 4th Berkeley Distribution, Release 6.7.5 β€” go forth and post responsibly πŸŒΈπŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from