This program is nothing more than a wrapper around the Mailbox widget included with the program's source distribution.
The following standard X Toolkit command line arguments are commonly used with xmailbox:
xmailbox*mailSndFile: /usr/lib/sounds/ugotmail.au xmailbox*mailSndComm: /usr/bin/play %s
The default translation is
<ButtonPress>: unset()
xmailbox has builtin support for eye-catching animation when new mail comes in, in addition to the optional sound support. Animation can be achieved by displaying a sequeunce of XPM icons with slight differences in each icon. The interval of displaying different icons is controlled by mailAnimUpdate measured in milliseconds. Values between 500 and 1000 seems to provide smooth animation. However, you should experiment with this parameter on your system.
In order to use this feature, you have to create a series of XPM icons with a base name such as "xmail.xpm" in a directory such as "/usr/X11/lib/icons/pixmap". Now, for each XPM icon created, prepend a number before the base name starting from 0. For example, you've created "0xmail.xpm", "1xmail.xpm", "2xmail.xpm", and "3xmail.xpm". Now, set the mailNumOfXpmFile entry to a value of "4" since there are four XPM icons created. Finally, set the mailXpmFile entry to "/usr/X11/lib/icons/pixmap/xmail.xpm". Note that "xmail.xpm" does not have any numbers prepended. When you start xmailbox and a new mail comes in, xmailbox will show the icons "0xmail.xpm", ..., "3xmail.xpm", "0xmail.xpm", ..., "3xmail.xpm", ... in that sequence until you've pressed the icon.
Note: If you do not specify mailXpmFile but set a value other than 1 to mailNumOfXpmFile, xmailbox will toggle between the internal "mail" and "nomail" icons.
William K. W. Cheung (wcheung@mail.spiralcomm.com)
Added optional sound output using the standard SUN audio driver, Linux's
Sun-compatible audio driver, the rplay sound package, or the NCD audio
server, as well as optional mail application execution upon clicking on
the mail icon. Added the capability to show a series of XPM icons when
new mail arrives.
Laurent Martin (martin@@isia.cma.fr)
Added the capability to use an external sound player application to play
a sound when new mail arrives.