From nobody@FreeBSD.org  Wed Mar 20 20:44:34 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 57AE237B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Mar 2002 20:44:34 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2L4iYj96362;
	Wed, 20 Mar 2002 20:44:34 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203210444.g2L4iYj96362@freefall.freebsd.org>
Date: Wed, 20 Mar 2002 20:44:34 -0800 (PST)
From: Joe Barbish <barbish@a1poweruser.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: core program vacation broken
X-Send-Pr-Version: www-1.0

>Number:         36155
>Category:       kern
>Synopsis:       sendmail's vacation documentation broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 20:50:01 PST 2002
>Closed-Date:    Mon Mar 25 13:55:11 PST 2002
>Last-Modified:  Mon Mar 25 13:55:11 PST 2002
>Originator:     Joe Barbish
>Release:        4.4
>Organization:
none
>Environment:
>Description:
.forward file as per example in man vacation does not work.
Get command line error when -r 14 to change default 1 week time limit
to 2 weeks. After first auto reply it stops replying.
vacation -l to list db does not work.  
>How-To-Repeat:
Follow man vacation instructions and try it out.      
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Thu Mar 21 02:20:05 PST 2002 
Responsible-Changed-Why:  
Actually, the vacation(8) program is 3rd party software included in 
the distribution. It is part of sendmail(8). Give this PR to the 
Sendmail Man. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36155 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Thu Mar 21 22:44:54 PST 2002 
State-Changed-Why:  
What error do you get when you try to use -r?  I don't get an error? 
I can also successfully list the database with 'vacation -l'. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=36155 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Mar 25 13:54:28 PST 2002 
State-Changed-Why:  
Initial problem was due to misunderstanding of instructions. 
The vacation man page has been clarified and will be part of the 
sendmail 8.12.3 import. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36155 
>Unformatted:

barbish> I have \bob, "|/usr/bin/vacation -r 10 " in .forward of user bob
barbish> ~/ home directory. And of course .vacation.msg and ran vacation -I
barbish> to create .vacation.db. When I send mail to bob, I get error msg
barbish> on root console about syntax of vacation command in bob's .forward
barbish> file. Just following the man page info on vacation command.

You didn't follow the man page correctly.  It states:

  Synopsis
       vacation  [-i] [-I] [-r interval] [-x] [-a alias] [-d] [-f
       database] [-l] [-m message] [-s address]  [-t  time]  [-z]
       login
       ^^^^^
...
       The intended use is in a .forward file.  For example, your
       .forward file might have:

              \eric, "|/usr/bin/vacation -a allman eric"
                                                   ^^^^
Note the required "login" field that is in both the synopsis and example.
Your .forward should read:

\bob, "|/usr/bin/vacation -r 10 bob"

More over, you only have to set the interval once so you can do this
instead:

vacation -I -r 10

and then have a normal .forward:

\bob, "|/usr/bin/vacation bob"

