COMSAT(8)
π COMSAT β the biff server, bestie edition π
okay so picture this: it's comsat(8), and it's literally the girl in the group chat whose entire job is to yell "BESTIE YOU GOT MAIL π¬" the second something lands in your inbox. iconic behavior honestly.
β¨ NAME β¨
comsat β the biff server π
β¨ SYNOPSIS β¨
comsat
that's it. no args. no flags. she simply exists and does her thing π
β¨ DESCRIPTION β¨
so comsat is the server process that catches incoming-mail reports and then notifies users β but ONLY if those users asked for this service in the first place. no consent, no notifications, we respect boundaries here π«Ά
she receives her messages on a datagram port that's tied to the "biff" service specification (go peek at services(5) and inetd(8) if you wanna see the receipts).
the messages are one-liners, and they look exactly like this:
user@mailbox-offset:/path/to/mailbox
now here's the vibe check π β if the user named in that line is logged in to the system and the terminal they're on has the owner execute bit turned on (which happens when someone runs a "biff y"), then the offset gets used as a seek offset into the right mailbox file, and the first 7 lines or 560 characters of the message get printed straight onto that user's terminal. slay.
one lil caveat tho: any lines that look like they're part of the message header β except the "From" and "Subject" lines β do NOT make it into the output. she's picky like that π
β¨ FILES β¨
/var/run/utmpβ she reads this to figure out who's logged on and on which terminals πΈ (it's giving surveillance but make it cozy)
β¨ SEE ALSO β¨
go read those, they're the supporting cast π¦
β¨ BUGS β¨
okay bestie, we gotta be real for a sec π
- the message header filtering? prone to error. she tries her best but she's not perfect fr fr.
- the density of information presented is near the theoretical minimum. that's the actual wording and honestly it's so shady of whoever wrote it but it's true π
- users should be notified of mail that arrives on other machines than the one they're currently logged in to. like, cross-machine mail exists, hello?? π
- the notification should appear in a separate window so it doesn't mess up the screen. (retro terminal girls, we hear you π)
and if you find bugs, please report them to netbug@ftp.uk.linux.org β and pls pls pls include diffs/patches, compiler error logs, or just as complete a bug report as you're able to put together. give her something to work with, she's begging π₯Ί
β¨ HISTORY β¨
the comsat daemon first appeared in 4.2BSD. she's been doing this since before your parents had email β
π and that's the whole page bestie β Linux NetKit (0.17-pre-20000412), dated July 31, 1999. she's an elder but she still serves. periodt. π β¨πΈ
π¦ where this page comes from
- debian bookworm: biff 1:0.17.pre20000412-5.1
- debian trixie: biff 1:0.17.pre20000412-5.1
- ubuntu jammy: biff 1:0.17.pre20000412-5.1
- ubuntu noble: biff 1:0.17.pre20000412-5.1
- ubuntu resolute: biff 1:0.17.pre20000412-6 Β· BSD-4-clause-UC
- ubuntu stonking: biff 1:0.17.pre20000412-6 Β· BSD-4-clause-UC
- Copyright (c) 1983, 1991 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms