IN.HOSTS(5)
π 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 plusnewsx(8)end tags to control when certain newsgroups get fetched, or using.newsrcarticle numbers so you don't refetch articles you've already seen β then you gotta set up thein.hostsfile 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 thenewsx -e(end tag) option β¨ - Otherwise, each line is a newsgroup name and the first unread article number, separated by whitespace. it's giving
group numberand 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. seenewsx.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
- Copyright 1999 Egil Kvaleberg, egil@kvaleberg.no
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms