[Dovecot] post-login scripting using PHP

Timo Sirainen tss at iki.fi
Tue Oct 26 17:03:31 EEST 2010


On Tue, 2010-10-26 at 16:00 +0200, Maciej Uhlig wrote:
> I'd like to write post-login script using PHP. I noticed every shell 
> post-login script ends with: exec "$@", which effectively executes 
> dovecot's script-login.

$@ is all parameters.

> However, while I try to do the same (?) in PHP: $prog = $argv[1]; exec 
> ("$prog"); it doesn't work. 

Here you're executing the program, but not giving it any parameters from
$argv[2] etc. I don't know what is the correct way to do that in PHP.




More information about the dovecot mailing list