newsbody(1)
π NAME π
newsbody β run a program on the body of a mail or news message. that's it, that's the whole vibe bestie π«Ά
β¨ SYNOPSIS β¨
newsbody [-fhqsv] [-k headername ] -n message -p program [-- [ arguments... ]]
π¦ DESCRIPTION π¦
okay so here's the tea. newsbody takes the body of a news or email article (that's your message) and copies it into a temporary file β we're calling that the bodyfile, iconic name, no notes β and then it calls program with its arguments. program is supposed to change the bodyfile somehow. like, it can be a spell checker, that's literally the classic example. then afterwards, the possibly-changed body gets remerged with the headers and copied back into the message. slay. β¨
if message is given as - then newsbody acts as a filter, meaning standard input and standard output get used instead. lowkey elegant. π
and listen β %f in the arguments expands to the name of the bodyfile, or to - if you're using the -f option. use %% if you want an actual, real, literal % character. yes queen, escape it. π
π OPTIONS π
-fβ the called program is a filter, so no temporary file. instead the body gets piped to its standard input and read back from its standard output. it's giving pipe energy π§-hβ keep the entire header. you can also use this flag ifnewsfiledoesn't have a header at all. protecting the header like it's your emotional support π«Ά-qβ also remove quotes before filtering the body. lines starting with>count as quotes. bye bye reply chains π-sβ also remove the signature before filtering the body. sorry to the sign-off, you're not invited to this party π-kheadernameβ keep these header lines in the bodyfile. multiple-kflags are allowed, so stack 'em, collect 'em, go feral β¨-vβ print the version and exit. short, sweet, done. π
π FILES π
newsbody uses one or two temporary files, with names given by the mkstemp(3) or the tmpnam(3) function. temp files stay winning π
π BUGS π
if some system call gives an unexpected error, newsbody will stop immediately with an error message β and it leaves its temporary files behind. π so yeah, not great, not terrible, but def not great. bestie just left the mess there fr fr.
π AUTHOR π
by Byrial Jensen <byrial@image.dk> β actual legend, we stan π
π SEE ALSO π
pospell(1) β go read it, iykyk π
and that's a wrap on this page from the Unix manual, dated APRIL 2000 β yes, the year, and it's still out here serving π πΈ thanks for coming to my ted talk, mwah π
π¦ where this page comes from
- debian bookworm: spellutils 0.7+debian-1 Β· GPL-2.0-or-later
- debian trixie: spellutils 0.7+debian-1 Β· GPL-2.0-or-later
- ubuntu jammy: spellutils 0.7-8
- ubuntu noble: spellutils 0.7+debian-1 Β· GPL-2.0-or-later
- ubuntu questing: spellutils 0.7+debian-1
- ubuntu resolute: spellutils 0.7+debian-2 Β· GPL-2.0-or-later
- ubuntu stonking: spellutils 0.7+debian-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms