Commit | Line | Data |
---|---|---|
82df9935 | 1 | .\" Copyright (c) 1985, 1987 Regents of the University of California. |
b0e4fbd0 | 2 | .\" All rights reserved. |
62cdb418 | 3 | .\" |
b0e4fbd0 | 4 | .\" Redistribution and use in source and binary forms are permitted |
57a981eb KB |
5 | .\" provided that the above copyright notice and this paragraph are |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
62cdb418 | 15 | .\" |
57a981eb | 16 | .\" @(#)vacation.1 6.6 (Berkeley) %G% |
b0e4fbd0 KB |
17 | .\" |
18 | .TH VACATION 1 "" | |
62cdb418 KM |
19 | .UC 6 |
20 | .SH NAME | |
b0e4fbd0 | 21 | vacation \- return ``I am not here'' indication |
62cdb418 KM |
22 | .SH SYNOPSIS |
23 | .B vacation | |
82df9935 | 24 | .B -i |
62cdb418 | 25 | .br |
b0e4fbd0 KB |
26 | .B vacation |
27 | [ | |
28 | .B -a | |
29 | alias ] login | |
62cdb418 | 30 | .SH DESCRIPTION |
82df9935 | 31 | \fIVacation\fP returns a message to the sender of a message telling |
b0e4fbd0 KB |
32 | them that you are currently not reading your mail. The intended use |
33 | is in a \fI.forward\fP file. For example, your \fI.forward\fP file | |
34 | might have: | |
62cdb418 KM |
35 | .PP |
36 | .ti +5 | |
b0e4fbd0 | 37 | \eeric, "|/usr/ucb/vacation -a allman eric" |
62cdb418 | 38 | .PP |
82df9935 | 39 | which would send messages to you (assuming your login name was eric) and |
b0e4fbd0 KB |
40 | reply to any messages for ``eric'' or ``allman''. |
41 | .PP | |
42 | No message will be sent unless \fIlogin\fP or an \fIalias\fP supplied | |
43 | using the \fB-a\fP option is a substring of either the ``To:'' or ``Cc:'' | |
44 | headers of the mail. No messages from ``???-REQUEST'', ``Postmaster'', | |
45 | ``UUCP'', ``MAILER'', or ``MAILER-DAEMON'' will be replied to, nor is a | |
46 | notification sent if a ``Precedence: bulk'' or ``Precedence: junk'' line | |
47 | is included in the mail headers. Only one message per week will be sent | |
48 | to each unique sender. The people who have sent you messages are | |
49 | maintained as an \fIndbm\fP(3) database in the files \fI.vacation.pag\fP | |
50 | and \fI.vacation.dir\fP in your home directory. | |
51 | .PP | |
52 | The \fB-i\fP flag initializes the vacation database files. It should be | |
53 | used before you modify your \fI.forward\fP file. | |
62cdb418 | 54 | .PP |
82df9935 KB |
55 | \fIVacation\fP expects a file \fI.vacation.msg\fP, in your home directory, |
56 | containing a message to be sent back to each sender. It should be an entire | |
57 | message (including headers). For example, it might say: | |
62cdb418 KM |
58 | .PP |
59 | .in +5 | |
60 | .nf | |
ed2d2fff EA |
61 | From: eric@ucbmonet.Berkeley.EDU (Eric Allman) |
62 | Subject: I am on vacation | |
b0e4fbd0 KB |
63 | Delivered-By-The-Graces-Of: The Vacation program |
64 | Precedence: bulk | |
ed2d2fff | 65 | |
62cdb418 | 66 | I am on vacation until July 22. If you have something urgent, |
ed2d2fff | 67 | please contact Joe Kalash <kalash@ucbingres.Berkeley.EDU>. |
62cdb418 KM |
68 | --eric |
69 | .fi | |
70 | .in -5 | |
71 | .PP | |
82df9935 KB |
72 | \fIVacation\fP reads the first line from the standard input for |
73 | a \s-1UNIX\s0-style ``From'' line to determine the sender. | |
74 | \fISendmail\fP(8) includes this ``From'' line automatically. | |
75 | .PP | |
82df9935 KB |
76 | Fatal errors, such as calling \fIvacation\fP with incorrect arguments, |
77 | or with non-existent \fIlogin\fPs, are logged in the system log file, | |
78 | using \fIsyslog\fP(8). | |
79 | .SH FILES | |
80 | .nf | |
b0e4fbd0 | 81 | .ta \w'~/.vacation.msg 'u |
82df9935 | 82 | ~/.vacation.dir database file |
82df9935 KB |
83 | ~/.vacation.msg message to send |
84 | ~/.vacation.pag database file | |
85 | .fi | |
86 | .SH "SEE ALSO" | |
87 | sendmail(8), syslog(8) |