IN.HOSTS(5)

πŸ“¦
version 1.6 Β· 2 versions
, in fedora 43

πŸ’– IN.HOSTS πŸ’–

okay bestie, so this is the in.hosts page from section 5 of the File Formats Manual β€” aka the manual for file formats. no cap. let's get into it 🫢


✨ NAME ✨

in.hosts β€” the newsx incoming host state, and yes it's exactly as iconic as it sounds πŸ’…


🌸 DESCRIPTION 🌸

so the in.hosts directory is where all the state info lives for the incoming news streams that newsx(8) goes and fetches for you. it's giving backstage pass energy β€” it's literally the record of where everything's at ✨

for every single incoming news source, there has to be a /var/spool/news/inhosts/spoolname file. that file is the one describing what the latest article is that's been fetched from that particular host. one file per host, no mixing, we do not share βœ‹

now here's the vibe check on your options:

  • if you just want all the news articles in all the groups defined at your local server β€” do nothing 🧚 let the file construct itself automatically, she's self-sufficient, we love that for her
  • if you want other choices, like using multiple cron(8) entries plus newsx(8) end tags to control when certain newsgroups get fetched, or using .newsrc article numbers so you don't refetch articles you've already seen β€” then you gotta set up the in.hosts file for the server by hand. yes, manually. i know. 😭

πŸŽ€ the file format (it's simple, i promise) πŸŽ€

  • Blank lines? comments. lines starting with a #? also comments. we're not reading those, bestie πŸ’€
  • Lines starting with a : are a tag for use with the newsx -e (end tag) option ✨
  • Otherwise, each line is a newsgroup name and the first unread article number, separated by whitespace. it's giving group number and nothing more
  • and if there's no article number, that's the same as zero, which means all available articles on the server will be read. zero = give me everything, main character energy πŸ‘‘
important, fr fr: there is one unique file belonging to each remote newsserver, and they should not be mixed. keep them separate, do not cross the streams πŸ’€

one more thing that's lowkey a lifesaver: if you're switching from reading news via an NNTP newsreader over to fetching with newsx, you can use an existing .newsrc file directly as the initial /var/spool/news/inhosts/spoolname file. no conversion, no drama, just plug it in 🌈


✨ FILES ✨

  • /var/spool/news/inhosts/spoolname β€” the incoming host state file. there should be one of these per external news server. one per server, periodt πŸ’…
  • /var/spool/news/inhosts/spoolname.tmp β€” the incoming spool, temporary (it exists while news is being pulled) πŸ¦‹
  • /var/spool/news/inhosts/spoolname.old β€” the previous generation of the external host state file. her throwback era πŸ™ˆ
  • /var/spool/news/in.hosts/spoolname.conf β€” standard profile for a specific newsspool. see newsx.conf(5) for the file format ✨

πŸ’œ AUTHOR πŸ’œ

Egil Kvaleberg <egil@kvaleberg.no> β€” shoutout to the icon who wrote this πŸ‘‘


🌟 SEE ALSO 🌟


and that's the whole page, bestie!! πŸŽ€ this was IN.HOSTS from section 5 of the File Formats Manual β€” mwah, obsessed, go read newsx(8) next πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from
  • fedora 43: newsx 1.6-47.fc43 Β· GPL-2.0-or-later AND Zeeff
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms