/usr/share/doc/mailutils-doc/mailutils.html/dot_002ebiffrc.html is in mailutils-doc 1:2.99.98-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Published by the Free Software Foundation,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA
Copyright (C) 1999-2004, 2008-2012 Free Software Foundation,
Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover, and no Back-Cover texts.
A copy of the license is included in the section entitled "GNU Free
Documentation License". -->
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU Mailutils Manual: dot.biffrc</title>
<meta name="description" content="GNU Mailutils Manual: dot.biffrc">
<meta name="keywords" content="GNU Mailutils Manual: dot.biffrc">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Function-Index.html#Function-Index" rel="index" title="Function Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="comsatd.html#comsatd" rel="up" title="comsatd">
<link href="mh.html#mh" rel="next" title="mh">
<link href="Security-Settings.html#Security-Settings" rel="prev" title="Security Settings">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="dot_002ebiffrc"></a>
<div class="header">
<p>
Previous: <a href="Configuring-comsatd.html#Configuring-comsatd" accesskey="p" rel="prev">Configuring comsatd</a>, Up: <a href="comsatd.html#comsatd" accesskey="u" rel="up">comsatd</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="A-per_002duser-Configuration-File"></a>
<h4 class="subsection">3.15.3 A per-user Configuration File</h4>
<p>By default, when a notification arrives, <code>comsatd</code> prints subject,
from headers and the first five lines from the new message to the user’s
tty. The user is allowed to change this behavior by using his own
configuration file. This file should be located in the user’s home
directory and should be named <samp>.biffrc</samp>. It must be owned by the
user and have its permissions bits set to 0600. (<em>Please note</em>,
that the use of per-user configuration files may be disabled, by
specifying ‘<samp>allow-biffrc no</samp>’ in the main configuration file, see
see <a href="Configuring-comsatd.html#Configuring-comsatd">Configuring comsatd</a>).
</p>
<p>The <samp>.biffrc</samp> file consists of a series of statements. Each
statement occupies one line and defines an action to be taken upon
arrival of a new mail. Very long lines may be split using ‘<samp>\</samp>’ as
the last character on the line. As usual, comments may be introduced with
‘<samp>#</samp>’ character.
</p>
<p>The actions specified in <samp>.biffrc</samp> file are executed in turn.
The following actions are defined:
</p>
<dl compact="compact">
<dt>beep</dt>
<dd><p>Produce an audible signal.
</p></dd>
<dt>echo [-n] <var>string</var> [<var>string</var>...]</dt>
<dd><p>Output the arguments to the user’s terminal device. If several
arguments are given they will be output separated by single
spaces. The newline character will be printed at the end of the
output, unless the <samp>-n</samp> option is used.
</p></dd>
<dt>exec <var>prog</var> <var>arglist</var></dt>
<dd><p>Execute program <var>prog</var> with arguments from <var>arglist</var>. <var>prog</var>
must be specified with absolute pathname. It may not be a setuid or
setgid program.
</p></dd>
</dl>
<p>In the description above, <var>string</var> denotes any sequence of
characters. This sequence must be enclosed in a pair of double-quotes,
if it contains whitespace characters. The ‘<samp>\</samp>’ character inside a
string starts a C escape sequence. Following meta-characters may be
used in strings:
</p>
<dl compact="compact">
<dt>$u</dt>
<dd><p>Expands to username
</p></dd>
<dt>$h</dt>
<dd><p>Expands to hostname
</p></dd>
<dt>$H{name}</dt>
<dd><p>Expands to value of message header ‘<samp>name</samp>’.
</p></dd>
<dt>$B(<var>c</var>,<var>l</var>)</dt>
<dd><p>Expands to message body. <var>c</var> and <var>l</var> give maximum number of
characters and lines in the expansion. When omitted, they default to 400, 5.
</p></dd>
</dl>
<a name="Example-I"></a>
<h4 class="subsubheading">Example I</h4>
<p>Dump to the user’s terminal the contents of ‘<samp>From</samp>’ and
‘<samp>Subject</samp>’ headers followed by at most 5 lines of message body.
</p><div class="example">
<pre class="example">echo "Mail to \a$u@$h\a\n---\n\
From: $H{from}\n\
Subject: $H{Subject}\n\
---\n\
$B(,5)\
---\n"
</pre></div>
<p>The above example can also be written as:
</p><div class="example">
<pre class="example">echo Mail to \a$u@$h\a
echo ---
echo From: $H{From}
echo Subject: $H{Subject}
echo ---
echo $B(,5)
echo ---
</pre></div>
<a name="Example-II"></a>
<h4 class="subsubheading">Example II</h4>
<p>Produce a bell, then pop up the xmessage window on display :0.0 with
the text formatted in the same manner as in the previous example.
</p>
<div class="example">
<pre class="example">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"
</pre></div>
<hr>
<div class="header">
<p>
Previous: <a href="Configuring-comsatd.html#Configuring-comsatd" accesskey="p" rel="prev">Configuring comsatd</a>, Up: <a href="comsatd.html#comsatd" accesskey="u" rel="up">comsatd</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-Index.html#Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|