On Tue, 16 Feb 1999, Harald Hanche-Olsen wrote:
> - "Matt D. Landry" <[EMAIL PROTECTED]>:
>
> | I'm trying to set up an auto-reply feature for employees that are
> | out of the office..can I set up a mailing list type script that
> | allows employees to set an option that they are out of the office
> | and my script will auto-reply to any messages sent to the employee,
> | and has anybody done anything like this?
>
> It's been done. It's called the vacation program (try man vacation on
> your system). Beware of home cooking in this area - it is just too
> easy to create mail loops. Also note that most (all?) versions of the
> vacation program must be run as ``|preline vacation ...'' from the
> .qmail file.
And also note that unless you've got a vacation built especially for
qmail, then using preline will fail for large messages. From the
www.qmail.org pages:
If you use qmail's preline utility, remember that preline expects
to pipe the _entire_ mail message through the specified program. If
the specified program closes standard input before preline has
finished, preline will exit with a transient failure and you'll see
the following error in your logs:
deferral: preline:_fatal:_unable_to_copy_input:_broken_pipe/
You'll see this problem if you try to use the sendmail version of
vacation [Peter Samuel]
Not wishing to beat my own drum (much), but this was the reason I
wrote my vacation implementation. See
ftp://ftp.uniq.com.au/pub/tools/qmail/qmail-vacation-1.3.tar.gz
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"