1 .\" $NetBSD: vacation.1,v 1.27 2004/08/25 12:47:57 wiz Exp $
3 .\" Copyright (c) 1985, 1987, 1990, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)vacation.1 8.2 (Berkeley) 4/28/95
43 .Op Fl f Ar databasefile
44 .Op Fl m Ar messagefile
51 .Op Fl f Ar databasefile
52 .Op Fl m Ar messagefile
58 returns a message to the sender of a message telling them that you
59 are currently not reading your mail.
60 The intended use is in a
66 .Bd -literal -offset indent
67 \eeric, "|/usr/bin/vacation -a allman eric"
69 which would send messages to you (assuming your login name was eric) and
70 reply to any messages for
80 in the same manner as those received for the user's
83 Turn debugging on; don't send an actual message, but print it on stdout.
84 .It Fl f Ar database_file
90 .Dv $HOME/.vacation.db .
94 additionally look in From: (F), Return-Path: (R), or Sender: (S) headers
95 to determine the From: field.
98 Initialize the vacation database files.
99 It should be used before you modify your
103 Do not check if the recipient is present in the
108 Usage of this option is strongly discouraged because it will result in
110 replying to mailing lists or other inappropriate places (e.g., messages that
114 .It Fl m Ar message_file
118 .Dv $HOME/.vacation.msg .
122 instead of the value read from the message.
125 Set the reply interval to
130 number is followed by
137 then the number is interpreted as weeks, days, hours, minutes, or seconds
147 a reply is sent to each message, and an interval of
149 (actually, any non-numeric character) will never send more than
151 It should be noted that intervals of
154 dangerous, as it allows mailers to get into
160 additionally look in Apparently-To: (A) or Delivered-To: (D) headers
161 to determine the To: field.
164 No message will be sent unless
170 option) is part of either the
182 will be replied to (where these strings are
183 case insensitive) nor is a notification sent if a
188 line is included in the mail headers.
189 The people who have sent you messages are maintained as a
193 in your home directory.
198 in your home directory, containing a message to be sent back to each
200 It should be an entire message (including headers).
201 If the message contains the string
203 then it will will be replaced with the subject of the original message.
204 For example, it might contain:
206 .Bd -literal -offset indent -compact
207 From: eric@CS.Berkeley.EDU (Eric Allman)
208 Subject: I am on vacation
209 Delivered-By-The-Graces-Of: The Vacation program
212 I am on vacation until July 22.
213 Your mail regarding "$SUBJECT" will be read when I return.
214 If you have something urgent, please contact Keith Bostic
215 \*[Lt]bostic@CS.Berkeley.EDU\*[Gt].
220 reads the first line from the standard input for a
223 line to determine the sender.
229 Fatal errors, such as calling
231 with incorrect arguments, or with non-existent
233 are logged in the system log file, using
236 .Bl -tag -width "vacation.dirxxx" -compact
237 .It Pa ~/.vacation.db
239 .It Pa ~/.vacation.msg
255 should only be done for misconfigured or non-compliant MTAs.
256 Doing so may auto-respond to messages that were not supposed to be replied to.