Commit aa1caef5 aa1caef5a181287fcd68a4ec9a600e4927a40833 by Sergey Poznyakoff

Minor improvement

* examples/config/dot.biffrc: Update.
* comsat/comsat.c (main): In test mode, normalize biffrc names that
begin with ./ or ../
1 parent 55086f94
......@@ -606,7 +606,8 @@ main (int argc, char **argv)
}
}
if (biffrc[0] == '.' && biffrc[1] == '/')
if (biffrc[0] == '.' && (biffrc[1] == '/' ||
(biffrc[1] == '.' && biffrc[2] == '/')))
{
char *cwd = mu_getcwd ();
biffrc = mu_make_file_name (cwd, biffrc);
......
......@@ -3,11 +3,28 @@
# 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.
# Actions could be:
# beep -- Produce audible signal
# echo STRING -- Output STRING to the user's tty
# exec PROG ARGS... -- Execute given program
#
# 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\
......@@ -15,7 +32,7 @@ From: $H{from}\n\
Subject: $H{Subject}\n\
---\n\
$B(,5)\n\
---\n"
---"
# For users of X windows system: produce a bell and open an xmessage window
beep
......