[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Using vacation message for automated response



On Fri, 6 Jul 2001, Dan Kriwitsky wrote:

> >
> > Is there a limit to the length of the message?  I can type it all
> > in and it's a few
> > paragraphs, but not THAT long.
> >
> It's designed to only reply once to an email address, I think, per week. Try
> from another address. It's not an auto-responder.
> --
> Dan Kriwitsky
> 
> 

Yup. 604800 seconds, which are exactly 7 days. This can be changed though.
Editing the file /usr/local/sbin/vacation.pl:

if ($vacadb{$sendto} >= ($^T - 604800)) {
    # They've been given a reply recently
    untie %vacadb;
    exit;
} else {
    $vacadb{$sendto} = $^T;
    untie %vacadb;
}

my $message_out = `cat $message_file`;
                  [ line 43 of 99 (43%), character 1356 of 2710 (50%) ]

- shimi.