Biff

From Wikipedia, the free encyclopedia

The correct title of this article is biff. The initial letter is shown capitalized due to technical restrictions.
This article is about the Unix program. For other meanings, see Biff (disambiguation)

biff is a mail notification system for UNIX.

Contents

[edit] Usage

When a new mail message is delivered, biff alerts the recipient so he 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

biff y

and disabled by

biff n

[edit] Mechanism

The MTA is responsible for starting the notification process. After delivering a message, it sends the recipient's username to the comsat daemon. The real work is then done by comsat, which finds out where the user is logged in and sends the alert there. Before sending an alert, it checks the user execute permission bit on the tty. This otherwise useless bit is set by biff y and cleared by biff n as an indication of the user's desire to receive mail notifications.

[edit] 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, biff is not used very much any more. Some modern MTAs don't even support comsat, making 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 biff replacements, several with similar names like xbiff, xlbiff, kbiff, gnubiff, wmbiff and xbuffy. The concept also extends outside the UNIX world — the AOL "You've got mail" voice could be seen as a talking biff.

[edit] Variant

There was at least one vendor-specific version of biff that had a third mode of operation. In addition to y and n it could be set to b which would reduce the alert to just a pair of beeps, without any text written to the terminal. This made biff less disruptive. The feature has apparently died out.

[edit] Origin and name

biff came from BSD, and was named after a dog known by the developers at Berkeley.

Some sources[1][2] report that the dog would bark at the mailman, making it a natural choice for the name of a mail notification system. The Jargon File contradicts[3] this description, but confirms at least that the dog existed.

In other languages