scripts/autoresponder.sh
author "Tomas Zeman <tzeman@volny.cz>"
Sun, 20 Jan 2008 00:22:09 +0100
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
permissions -rw-r--r--
Imported vmailmgr-0.97

#!/bin/sh
#
# This script checks for the presence of an autoresponse message, and if
# present executes the autoresponder.
#
# To use this autoresponder, copy this file to
# vmailmgr/vdeliver-postdeliver if it does not already exist.  If it
# exists, copy this file somewhere accessable and add a call to it to
# vmailmgr/vdeliver-postdeliver.
#
# The autoresponder used here can be found at:
#	http://em.ca/~bruceg/qmail-autoresponder/
#

if test -s $MAILDIR/autoresponse/message.txt
then
  qmail-autoresponder $MAILDIR/autoresponse/message.txt $MAILDIR/autoresponse
fi