Add /usr/gnu/bin, /usr/gnu/man* (coming from ports installation)
[unix-history] / usr.bin / vacation / vacation.1
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1985, 1987, 1990, 1991 Regents of the University of California.
2.\" All rights reserved.
3
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)vacation.1 6.9 (Berkeley) 7/30/91
33.\"
34.Dd July 30, 1991
35.Dt VACATION 1
36.Os BSD 4.3
37.Sh NAME
38.Nm vacation
39.Nd return ``I am not here'' indication
40.Sh SYNOPSIS
41.Nm vacation
42.Fl i
43.Op Fl r Ar interval
44.Nm vacation
45.Op Fl a Ar alias
46.Ar login
47.Sh DESCRIPTION
48.Nm Vacation
49returns a message to the sender of a message telling them that you
50are currently not reading your mail. The intended use is in a
51.Pa .forward
52file. For example, your
53.Pa .forward
54file might have:
55.Bd -literal -offset indent
56\eeric, "|/usr/bin/vacation -a allman eric"
57.Ed
58which would send messages to you (assuming your login name was eric) and
59reply to any messages for
60.Dq eric
61or
62.Dq allman .
63.Pp
64Available options:
65.Bl -tag -width Ds
66.It Fl a Ar alias
67Handle messages for
68.Ar alias
69in the same manner as those received for the user's
70login name.
71.It Fl i
72Initialize the vacation database files. It should be used
73before you modify your
74.Pa .forward
75file.
76.It Fl r
77Set the reply interval to
78.Ar interval
79days. The default is one week. An interval of
80.Dq 0
81means that
82a reply is sent to each message, and an interval of
83.Dq Li infinite
84(actually, any non-numeric character) will never send more than
85one reply. It should be noted that intervals of
86.Dq Li \&0
87are quite
88dangerous, as it allows mailers to get into
89.Dq I am on vacation
90loops.
91.El
92.Pp
93No message will be sent unless
94.Ar login
95(or an
96.Ar alias
97supplied using the
98.Fl a
99option) is part of either the
100.Dq To:
101or
102.Dq Cc:
103headers of the mail.
104No messages from
105.Dq ???-REQUEST ,
106.Dq Postmaster ,
107.Dq Tn UUCP ,
108.Dq MAILER ,
109or
110.Dq MAILER-DAEMON
111will be replied to (where these strings are
112case insensitive) nor is a notification sent if a
113.Dq Precedence: bulk
114or
115.Dq Precedence: junk
116line is included in the mail headers.
117The people who have sent you messages are maintained as an
118.Xr ndbm 3
119database in the files
120.Pa .vacation.pag
121and
122.Pa .vacation.dir
123in your home directory.
124.Pp
125.Pp
126.Nm Vacation
127expects a file
128.Pa .vacation.msg ,
129in your home directory, containing a message to be sent back to each
130sender. It should be an entire message (including headers). For
131example, it might contain:
132.Pp
133.Bd -unfilled -offset indent -compact
134From: eric@ucbmonet.Berkeley.EDU (Eric Allman)
135Subject: I am on vacation
136Delivered-By-The-Graces-Of: The Vacation program
137Precedence: bulk
138
139I am on vacation until July 22. If you have something urgent,
140please contact Joe Kalash <kalash@ucbingres.Berkeley.EDU>.
141--eric
142.Ed
143.Pp
144.Nm Vacation
145reads the first line from the standard input for a
146.Ux
147.Dq From
148line to determine the sender.
149.Xr Sendmail 8
150includes this
151.Dq From
152line automatically.
153.Pp
154Fatal errors, such as calling
155.Nm vacation
156with incorrect arguments, or with non-existent
157.Ar login Ns Ar s ,
158are logged in the system log file, using
159.Xr syslog 8 .
160.Sh FILES
161.Bl -tag -width "vacation.dirxxx" -compact
162.It Pa ~/.vacation.dir
163database file
164.It Pa ~/.vacation.msg
165message to send
166.It Pa ~/.vacation.pag
167database file
168.El
169.Sh SEE ALSO
170.Xr sendmail 8 ,
171.Xr syslog 8
172.Sh HISTORY
173The
174.Nm vacation
175command appeared in
176.Bx 4.3 .