imp for DEBIAN
----------------------

NOTES:

php3 modules
------------

  You must install the corrosponding php3- module that matches the
database you are using.  I have set them as "suggests" as I don't
want to require anyone to install a module that they may not need/use.
For postgresql it's php3-pgsql and for mysql it's php3-mysql.

Other modules needed/recommended:  

          php3-imap (required)
          php3-ldap (recommended)

php4 is supported by IMP now, I just need to make modifications to
packages to allow it to work properly.

---------


Postgres:

    In order for HORDE to work with Postgresql you need to enable TCP
communication.  To do this you need to edit /etc/postgresql/postmaster.init
and change the following line:

from:

# PGALLOWTCPIP=no

to:

PGALLOWTCPIP=yes

    You will need to restart postgresql after this.


== user_from_hook

/etc/imp/user_from.in is a template file for creating a custom from line
hook..here is the original documatation for it's syntax:

/* Here is an example imp_expand_fromaddress function. You get passed
 * the $imp object, and have access to evenything inside it, which
 * should be plenty of information. You can global anything else you
 * need. Return an address - either just the user@ side, or a full
 * address, and it should be used.
 *
 * NB: If users are allowed to change their fromaddresses (not
 * fullnames, though), and they have one set, this will be
 * overridden.
 *
 * NB2: The code assumes that this function will return a reasonable
 * address, so make sure to fall back to $imp->user or some such on
 * failure. */
function imp_expand_fromaddress ($imp) {
  if ($imp->server != 'colrain.williams.edu') { return $imp->user; }

  $cmd = '/usr/local/bin/ph unix=' . escapeShellCmd($imp->user) . ' | /bin/grep
email | /usr/bin/awk \'{print $2}\'';
  $name = `$cmd`;
  return (empty($name) ? $imp->user : $name);
} // imp_expand_fromaddress()


Ivan E. Moore II <rkrusty@debian.org>, Sun,  28 Mar 1999 14:50:10 -0500
