Vacation plugin v0.2 for QMAIL with LDAP directory
--------------------------------------------------

This plugin allows you to set an auto-reply message to incoming email.
Most commenly used to notify the sender of one's absence.
The vacation message is store in the LDAP directory.

It is written for the QMAIL server with authentication on an LDAP server.
You can find the QMAIL program at the following URL: http://cr.yp.to/qmail.html
OpenLDAP can be found at http://www.openldap.org/
Note that you have to apply a patch to qmail so that the autentication could
have done.
For this, take down the patch here: http://www.nrg4u.com/qmail/ and
don't forget to copy the qmail.schema generated file to the LDAP's schemas
directory.

For my configuration, i use openldap-servers-2.0.23-4 with qmail-1.03
and the patch qmail-ldap-1.03-20011001a.patch

The vacation messages are stored in the LDAP sevrer under the "mailReplyText"
field of the user's dn, and is activated if the "deliveryMode" is set to "reply".
Only the first vacation message stored in the LDAP directory is used for the moment.


It is released under the GPL.

Configuration
-------------
You should edit (at least) the config.php file to reflect the settings of your
site. 
You have two ways to update the user LDAP vacation message:
- if users don't have access to change their password in the LDAP directory, uncomment
  the manager parameter
- if users have access to change their password, you don't have to change
  anything about login parameter.
  To allow users to change their settings, you could put the followin acl
  in the slapd.conf configuration file:
  access to attrs=mailReplyText,deliveryMode
	by self write
	by * auth

Problems
--------
Question: 
1) What mean the following message:
   > Warning: LDAP: Unable to perform the search: No such object in
   > /usr/share/squirrelmail/plugins/vacation/options.php on line 43
  Answer: The search engine is not correct. Does the "cn" is as
    $cn="uid=$username,ou=Users,dc=idealx,dc=com";
    or $cn="cn=$username,ou=Users,dc=idealx,dc=com"; ?

Version
-------
0.1
   First release
0.2 (20030502)
   update for compatibility with Squirrelmail 1.4.0

Author
------
Jrme Tournier <jtournier@IDEALX.com>
