Biff (Unix)

{{lowercase title|Biff}}

{{Use dmy dates|date=January 2024}}

{{code|biff}} is a mail notification system for Unix.

Usage

When a new mail message is delivered, the program {{codett|biff}} alerts the recipient so they can read it immediately. The alert is sent to the tty where the recipient is logged in, and contains the Subject, From line, and first few lines of the body of the new message. The alert also includes terminal beeps to guarantee quick attention.

Notification is enabled by the command

:{{code|biff y}}

and disabled by

:{{code|biff n}}

Comsat

The biff utility was the user interface used to change notification preferences. The actual act of notifying the user was performed by a daemon called {{codett|comsat}} (short for "communications satellite"). The {{codett|comsat}} daemon received messages via UDP describing the update to the mailbox, and would then inform the user of the new message.{{man|8|comsat|NetBSD}}

Replacements

Because the sudden, unexpected printing of a block of text on a tty can be annoying if it overwrites more useful information on the screen that can't be easily regenerated, {{codett|biff}} is not used very much any more. Some modern MTAs do not even support comsat (the server process which listens for reports of incoming mail) making {{codett|biff}} useless.

The general idea of the incoming mail alert has remained very popular even as the original biff and comsat have been almost completely abandoned. There are many {{codett|biff}} replacements, several with similar names like xbiff, {{codett|xlbiff}}, {{codett|cwbiff}}, {{codett|kbiff}}, {{codett|gnubiff}}, {{codett|wmbiff}}, {{codett|imapbiff}} and {{codett|xbuffy}}. The concept also extends outside the Unix world — the AOL "You've got mail" voice could be seen as a talking biff.

Variant

Some versions of {{codett|biff}}, such as the one found in FreeBSD as of 4.7FreeBSD manual page: [https://www.freebsd.org/cgi/man.cgi?query=biff&sektion=1&apropos=0&manpath=FreeBSD+4.7-RELEASE biff(1)] have a third mode of operation. In addition to {{codett|y}} and {{codett|n}} it could be set to {{codett|b}} which would reduce the alert to just a pair of beeps, without any text written to the terminal. This makes {{codett|biff}} less disruptive.

Origin and name

{{codett|biff}} was written by John Foderero for 4.0BSD. It was named after a dog belonging to Heidi Stettner, another Berkeley CS student; the dog was well known to many students as he would accompany Stettner around campus.{{cite book |last=Salus |first=Peter |date=1994 |title=A Quarter Century of UNIX |url=https://archive.org/details/AQuarterCenturyOfUNIXPeterH.Salus |publisher=Addison-Wesley Publishing Company |page=169 |isbn=9780201547771 }}

Eric Cooper, a student contemporary to Foderero and Stettner, reports that the dog would bark at the mail carrier,[http://www.mcsr.olemiss.edu/unixhelp/didyou/biff.html biff: Did You Know?] {{Webarchive|url=https://web.archive.org/web/20121113023650/http://www.mcsr.olemiss.edu/unixhelp/didyou/biff.html |date=13 November 2012 }} Eric Cooper[http://www.unixguide.net/unix/faq/1.3.shtml What does {some strange unix command name} stand for?] UNIXguide.net making it a natural choice for the name of a mail notification system. Stettner herself contradicts this.Jargon File: [http://www.catb.org/jargon/html/B/biff.html biff]

References