version 1.12, 1999/10/17 20:24:33 |
version 1.13, 2000/03/14 14:58:24 |
|
|
.Op Fl a Ar alias |
.Op Fl a Ar alias |
.Ar login |
.Ar login |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm vacation |
.Nm |
returns a message to the sender of a message telling them that you |
returns a message to the sender of a message telling them that you |
are currently not reading your mail. The intended use is in a |
are currently not reading your mail. |
|
The intended use is in a |
.Pa .forward |
.Pa .forward |
file. For example, your |
file. |
|
For example, your |
.Pa .forward |
.Pa .forward |
file might have: |
file might have: |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
|
|
in the same manner as those received for the user's |
in the same manner as those received for the user's |
login name. |
login name. |
.It Fl i |
.It Fl i |
Initialize the vacation database files. It should be used |
Initialize the vacation database files. |
before you modify your |
It should be used before you modify your |
.Pa .forward |
.Pa .forward |
file. |
file. |
.It Fl r |
.It Fl r |
Set the reply interval to |
Set the reply interval to |
.Ar interval |
.Ar interval |
days. The default is one week. An interval of |
days. |
|
The default is one week. |
|
An interval of |
.Dq 0 |
.Dq 0 |
means that |
means that |
a reply is sent to each message, and an interval of |
a reply is sent to each message, and an interval of |
.Dq Li infinite |
.Dq Li infinite |
(actually, any non-numeric character) will never send more than |
(actually, any non-numeric character) will never send more than |
one reply. It should be noted that intervals of |
one reply. |
|
It should be noted that intervals of |
.Dq Li \&0 |
.Dq Li \&0 |
are quite |
are quite |
dangerous, as it allows mailers to get into |
dangerous, as it allows mailers to get into |
|
|
.Pa .vacation.db |
.Pa .vacation.db |
in your home directory. |
in your home directory. |
.Pp |
.Pp |
.Nm vacation |
.Nm |
expects a file |
expects a file |
.Pa .vacation.msg , |
.Pa .vacation.msg , |
in your home directory, containing a message to be sent back to each |
in your home directory, containing a message to be sent back to each |
sender. It should be an entire message (including headers). For |
sender. |
example, it might contain: |
It should be an entire message (including headers). |
|
For example, it might contain: |
.Pp |
.Pp |
.Bd -unfilled -offset indent -compact |
.Bd -unfilled -offset indent -compact |
From: eric@CS.Berkeley.EDU (Eric Allman) |
From: eric@CS.Berkeley.EDU (Eric Allman) |
|
|
Delivered-By-The-Graces-Of: The Vacation program |
Delivered-By-The-Graces-Of: The Vacation program |
Precedence: bulk |
Precedence: bulk |
|
|
I am on vacation until July 22. If you have something urgent, |
I am on vacation until July 22. |
|
If you have something urgent, |
please contact Keith Bostic <bostic@CS.Berkeley.EDU>. |
please contact Keith Bostic <bostic@CS.Berkeley.EDU>. |
--eric |
--eric |
.Ed |
.Ed |
|
|
in |
in |
.Pa .vacation.msg |
.Pa .vacation.msg |
will be replaced by the subject of the message that triggered the |
will be replaced by the subject of the message that triggered the |
.Nm vacation |
.Nm |
program. |
program. |
.Pp |
.Pp |
.Nm vacation |
.Nm |
reads the incoming message from standard input, checking the message |
reads the incoming message from standard input, checking the message |
headers for either the |
headers for either the |
.Ux |
.Ux |
.Dq From |
.Dq From |
line or a |
line or a |
.Dq Return-Path |
.Dq Return-Path |
header to determine the sender. If both are present the sender from the |
header to determine the sender. |
|
If both are present the sender from the |
.Dq Return-Path |
.Dq Return-Path |
header is used. |
header is used. |
.Pp |
.Pp |
Fatal errors, such as calling |
Fatal errors, such as calling |
.Nm vacation |
.Nm |
with incorrect arguments, or with non-existent |
with incorrect arguments, or with non-existent |
.Ar login Ns Ar s , |
.Ar login Ns Ar s , |
are logged in the system log file, using |
are logged in the system log file, using |
|
|
.Xr sendmail 8 |
.Xr sendmail 8 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm vacation |
.Nm |
command appeared in |
command appeared in |
.Bx 4.3 . |
.Bx 4.3 . |