dot.biffrc
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# A sample per-user biff configuration file. It should be stored
# in user home directory and named .biffrc. It must be owned by
# the user and have permissions 0600
# Each line specifies an action to be taken upon arrival of
# a message. A backslash can be used to escape the newlines.
#
# Valid actions are:
# * beep
# Produces audible signal.
# * echo [-n] ARGS
# Outputs ARGS to the tty. The -n option suppresses trailing newline.
# * exec PROG ARGS...
# Executes the program PROG with the given arguments.
# * default
# Executes the default (built-in) actions.
# * tty NAME [[~]FLT [ARGS] [+ [~]FLT [ARGS]...]
# Opens the file NAME and assigns it as a tty for subsequent commands.
# NAME can be any type of file, the only requirement being that it
# must exist. Optional arguments insert a chain of filters before
# writing to that file or device. For the list of available filters
# run `mu filter --list'. Filters are applied from right to left.
# The ~ in front of a filter name means open this filter in decode more
# (by default, filters are opened in encode mode).
# Default settings correspond to:
# tty /dev/tty 7bit + ?crlf
# The ? means apply next filter only if the device needs CR to be output
# before each LF.
# This is the default action
echo "Mail to \a$u@$h\a\n---\n\
From: $H{from}\n\
Subject: $H{Subject}\n\
---\n\
$B(,5)\n\
---"
# For users of X windows system: produce a bell and open an xmessage window
beep
exec /usr/X11R6/bin/xmessage -display :0.0 -timeout 10 "Mail to $u@$h \n---\n\
From: $H{from}\n\
Subject: $H{Subject}\n\
---\n\
$B(,5)\n\
---\n"