On Mon, 1 Mar 1999, Samuel Dries-Daffner wrote:
>
> Yes, I have .qmail set as:
>
> | /usr/local/bin/Qvacation -t30s teststud
> /var/mail/teststud
>
> where Qvacation is your program...so I understand this to mean a 30 second
> time frame.
Good. Just checking. So let me recap:
- using the .qmail file above, incoming mail from certain MUA
programs will generate a vacation message, but incoming mail from
other MUA programs will NOT generate a vacation message. An
finally, incoming mail from some MUA programs will somtimes
generate a vacation message and sometimes not.
Is the dbm file changing on each incoming message? You can do a sum on
the dbm file after each message to check. If you have SunOS or Solaris
you can run
makedbm -u .vacation
to see the contents of the file (note the lack of extension). This
will only work if perl stores dbm files with .pag and .dir extensions.
Otherwise, try this quick dbmlist program
#!/usr/local/bin/perl
require 'ctime.pl';
$file = shift;
$file = ".vacation" unless $file;
dbmopen(%DBM, "$file", 0644);
foreach $key (sort keys %DBM)
{
print "$key\n";
print " ", ctime(unpack("L", $DBM{$key}));
}
dbmclose(%DBM);
You should see the date change for each user. Let me know how you go.
Another thing to note is that vacation won't generate a reply if any
of the following conditions is true:
- The sender address includes the string -REQUEST@.
- The sender is you.
- The sender's name is any of:
daemon
postmaster
mailer-daemon
mailer
root
- The sender matches any of the mail addresses listed in the
optional files ~/.vacation.aliases and
~/.vacation.noreply. See the FILES section below for more
details on these files.
- There is a Precedence: bulk or Precedence: junk header.
- There is a Mailing-List: header.
- Your mail address, or any address you have listed in the
optional ~/.vacation.aliases file does not appear in either the
To: or Cc: headers. This feature can be disabled using the -j
option. See the OPTIONS section below for more details on this
option.
- An automatic reply has already been sent to the same address
during the last week. The timeout value may be changed using the
-t option. See the OPTIONS section below for more details on
this option.
- -n was specified on the command line and the user does not have
a ~/.vacation.msg file.
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
Technical Consultant or at present:
Uniq Professional Services, [EMAIL PROTECTED]
a division of X-Direct Pty Ltd
Phone: +61 2 9206 3410 Fax: +61 2 9281 1301
"If you kill all your unhappy customers, you'll only have happy ones left"