biff (Unix)

From English Wikipedia @ Freddythechick

<syntaxhighlight lang="text" class="" style="" inline="1">biff</syntaxhighlight> is a mail notification system for Unix.

Usage

When a new mail message is delivered, the program <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> 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

<syntaxhighlight lang="text" class="" style="" inline="1">biff y</syntaxhighlight>

and disabled by

<syntaxhighlight lang="text" class="" style="" inline="1">biff n</syntaxhighlight>

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 <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">comsat</syntaxhighlight> (short for "communications satellite"). The <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">comsat</syntaxhighlight> daemon received messages via UDP describing the update to the mailbox, and would then inform the user of the new message.[1]

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, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> 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 <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> 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 <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> replacements, several with similar names like <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">xbiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">xlbiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">cwbiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">kbiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">gnubiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">wmbiff</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">imapbiff</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">xbuffy</syntaxhighlight>. 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 <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight>, such as the one found in FreeBSD as of 4.7[2] have a third mode of operation. In addition to <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">y</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">n</syntaxhighlight> it could be set to <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">b</syntaxhighlight> which would reduce the alert to just a pair of beeps, without any text written to the terminal. This makes <syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> less disruptive.

Origin and name

<syntaxhighlight lang="text" class="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">biff</syntaxhighlight> 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.[3]

Eric Cooper, a student contemporary to Foderero and Stettner, reports that the dog would bark at the mail carrier,[4][5] making it a natural choice for the name of a mail notification system. Stettner herself contradicts this.[3][6]

References

  1. ^ comsat(8) – NetBSD System Manager's Manual
  2. ^ FreeBSD manual page: biff(1)
  3. ^ 3.0 3.1 Salus, Peter (1994). A Quarter Century of UNIX. Addison-Wesley Publishing Company. p. 169. ISBN 9780201547771.
  4. ^ biff: Did You Know? Archived 13 November 2012 at the Wayback Machine Eric Cooper
  5. ^ What does {some strange unix command name} stand for? UNIXguide.net
  6. ^ Jargon File: biff