VACATION(1) | User Commands | VACATION(1) |
vacation [-I]
vacation [-a alias] [-e filter_file] [-f database_file] [-j] [-m message_file] [-s sender] [-tN] username
vacation [-f database_file] -l
To install vacation, type it with no arguments on the command line. The program creates a .vacation.msg file, which contains the message that is automatically sent to all senders when vacation is enabled, and starts an editor for you to modify the message. (See USAGE section.) Which editor is invoked is determined by the VISUAL or EDITOR environment variable, or vi(1) if neither of those environment variables are set.
A .forward file is also created if one does not exist in your home directory. Once created, the .forward file will contain a line of the form:
One copy of an incoming message is sent to the username and another copy is piped into vacation:
\username, "|/usr/bin/vacation username"
If a .forward file is present in your home directory, it will ask whether you want to remove it, which disables vacation and ends the installation.
The program automatically creates .vacation.pag and .vacation.dir, which contain a list of senders when vacation is enabled.
-I
Options -a, -e, -f, -j, -m, -s, and -t are configuration options to be used in conjunction with vacation in the .forward file, not on the command line. For example,
\username, "|/usr/bin/vacation -t1m username"
repeats replies to the sender every minute.
-a alias
-e filter_file
-f database_file
-j
-m message_file
-s sender
-tN
The -l option is neither for initialization nor configuration, but for reporting. The -f option can also be used in conjunction with -l.
-l
Subject: I am on vacation I am on vacation until July 22. If you have something urgent, please contact Joe Jones (jones@fB0). --John
If the string $SUBJECT appears in the .vacation.msg file, it is replaced with the subject of the original message when the reply is sent. Thus, a .vacation.msg file such as
Subject: I am on vacation I am on vacation until July 22. Your mail regarding "$SUBJECT" will be read when I return. If you have something urgent, please contact Joe Jones (jones@fB0). --John
will include the subject of the message in the reply.
No message is sent if the To: or the Cc: line does not list the user to whom the original message was sent or one of a number of aliases for them, if the initial From line includes the string −REQUEST@, or if a Precedence: bulk or Precedence: junk line is included in the header.
vacation will also not respond to mail from either postmaster or Mailer-Daemon.
In addition to the above criteria, if a .vacation.filter file exists, it is used to constrain further the set of addresses to which a reply is sent. Each line in that file should be either a domain name, an email address, a negated domain name or a negated email address. A negated line starts with the single character !.
Each line is compared in the order listed to the sender address. A line containing an email address matches if the sender address is exactly the same except for case, which is ignored. A line containing a domain name matches if the sender address is something@domain-name or something@something.domain-name. A reply is sent if the first match is an entry that is not negated. If the first match is a negated entry, or if no lines match, then no reply is sent.
A sample filter file might look like the following:
!host.subdomain.example.com example.com !wife@example.org example.org onefriend@example.net anotherfriend@example.net
Blank lines and lines starting with "#" are ignored.
~/.vacation.filter
~/.vacation.msg
A list of senders is kept in the dbm format files .vacation.pag and .vacation.dir in your home directory. These files are dbm files and cannot be viewed directly with text editors.
November 22, 2021 | OmniOS |