![]() |
![]()
| ![]() |
![]()
NAMExbuffy - yet another biff for the X Window System SYNOPSISxbuffy [X toolkit options] [-help] [-version] [-horiz] [-poll seconds] [-header seconds] [-acmd sound file] [-nobeep] [-names] [-orig] [-priority priority] [-command command] [-shortnames] [-mail <mailbox files...>] [-news <newsgroup names...>] DESCRIPTIONXbuffy is based on Xmultibiff by John Reardon. Xbuffy keeps track of multiple mailboxes. You can either specify mailbox files on the command line, in a Xresources file, in a text configuration file, or set your MAILPATH environment variable (a colon separated list of files). It will display the number of new messages in each mail file in a box. You can clear the reverse video in a box by clicking on the box with Button 3. Another key feature of xbuffy is that it will use NNTP to watch newsgroups in the same way it watches mailboxes. You can also specify newsgroups on the command line, in Xresources, in a text configuration file (the same file can specify both mailboxes and newsboxes), or set your NEWSPATH environment variable using the same format as the MAILPATH environment variable. By specifying certain command line options and/or Xresources, xbuffy can show the From and Subject lines in each box. It can also invoke shell commands on button clicks. Each box can be configured differently by using a boxfile. In general, it is a very extensible biff. Read on for details on what it can do. OPTIONSThe following options are recognized:
ENVIRONMENTThe names and purpose of the some of the following environment variables were borrowed from Bash, the GNU Shell.
X DEFAULTSThe application class is XBuffy. Almost all the arguments above can be set in the X resource database, allowing for one-time configuration and eliminating long command lines. The environment variables described above take precedence over any X resources that are specified. Also, any command line arguments take precedence over both X resources and environment variables. BOXFILE FORMATThe boxfile contains configuration information for each box. Any line that begins with '#' is considered a comment and is ignored. The definition of a box begins with the keyword box followed by the filename or newsgroup for that box. All subsequent lines are then used to configure that box until either another box command or the end of file. Note that these options are NOT case sensitive. The following are settable on a per box basis by using the boxfile option (note that the boxfile may also be set in the Xresources with the resource Xbuffy.boxfile: <filename>). When using a boxfile, only the box line is required. All options that are not given in the boxfile will default to the command line (or built in) value.
EXAMPLESThe following examples demonstrate how to configure xbuffy to do the same thing from both the command-line and X resources. Although, for maximum flexibility on a per-box basis, I suggest using a boxfile. The following example will watch 2 mailboxes in a home directory: % xbuffy -mail ~/box1 ~/box2 &
box ~/box1 box ~/box2 The following example will watch a mailbox and a newsgroup: % xbuffy -mail /usr/spool/mail/you -news comp.windows.x &
box /usr/spool/mail/you box comp.windows.x newsbox GRATITUDEThanks to John Reardon for writing the original Xmultibiff and Xmultibiff 2.0. Xbuffy is a modified version of Xmultibiff 2.0 (although the code is looking less and less similar everyday). BUGSSometimes buffy detects a change in the mailbox and reports new mail before the mail is finished being delivered. This can (will) be fixed when buffy learns hows to deal with file locking. There is a bug with the NNTP stuff that isn't really Buffy's fault. Most versions of the NNTP server will not dynamically update the high message number (you must disconnect from the server and re-connect to get a new high message). If your server is running one of these versions of NNTP then you will not get told of new articles in your newsboxes. AUTHORxbuffy: Bill Pemberton, wfp5p@virginia.EDU
|