[imp] IMP 3.0 $conf['hooks']['from'] destroys design
Jan Schneider
jan@horde.org
Tue, 11 Jun 2002 16:19:41 +0200
Zitat von Jan-Marc Pilawa <j.pilawa@tu-bs.de>:
> in conf.php I altered/inserted :
>
> $conf['hooks']['from'] = 'imp_expand_fromaddress';
> if (!function_exists('imp_expand_fromaddress')) {
> function imp_expand_fromaddress ($imp) {
> return (system("/usr/local/bin/alias ".escapeshellarg($imp['user'])));
> }
> }
>
> /usr/local/bin/alias is a skript that echos the mail-alias (if found) or
> $1 (in any other case) to stdout
> The Result is, that not only I get the right From-Adress in the compose
> window but also the alias in its body. The Result is, that the
> compose-window begins with the alias before all the Table-Stuff starts.
Take a look at http://www.php.net/manual/en/function.system.php and compare
it with http://www.php.net/manual/en/function.exec.php
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft