1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
imp for DEBIAN
----------------------
NOTES:
Note that the umask is not set correctly in older versions. Make sure
that it says $default->umask = 177 in /etc/imp/defaults.php3 and not
$default->umask = '077' (it is the quotes that is important).
requirements:
-------------
To install imp you have to have php installed. You also need a connection
to a sql server, if you want database access to work. I do really recommend
that. It will work without a database but then you are on your own.
Ldap connection is also supported but the install scripts will not install
it, so you have to do that yourself.
autopatches
-----------
It is now possible to automaticly patch imp with patch files.
What you have to do is to place a diff file in /etc/imp/patches
with the name youre_name.patch. It will be applied from the root dir (/)
so it have to be created so that it will find the files in that way.
You should also only change files in /usr/share/horde/imp
or any other dir or file that always are overwritten by the installation
of the imp package.
php3 modules
------------
You must install the corrosponding php3- (or php4-) 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)
or
php4-imap (required)
php4-ldap (recommended)
---------
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()
CYRUS:
------
If you want to get cyrus imapd to work with imp you have to do the
following modifications:
Thanks to: Tomas Pospisek <tpo@spin.ch> for this information.
In /etc/imp/defaults.php3 replace:
$default->folders = 'mail/';
by $default->folders = '';
and
$default->personal_folders = '';
by $default->personal_folders = 'INBOX.';
In /etc/imp/defaults.php3.in replace:
folders="mail/";
by folders="";
and add to the bottom of the bottom of the file:
personal_folders="INBOX.";
Ivan E. Moore II <rkrusty@debian.org>, Sun, 28 Mar 1999 14:50:10 -0500
Ola Lundqvist <opal@debian.org> Thu 14 Dec 2000 16:17:59 +0100
|