Re: [Dovecot] post-login scripting using PHP

2010-10-26 Thread Maciej Uhlig
W dniu 2010-10-26 16:03, Timo Sirainen pisze: 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.

Re: [Dovecot] post-login scripting using PHP

2010-10-26 Thread Timo Sirainen
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: $p

[Dovecot] post-login scripting using PHP

2010-10-26 Thread Maciej Uhlig
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. However, while I try to do the same (?) in PHP: $prog = $argv[1]; exec ("$prog"); it doesn't work. The client timeouts, dovecot (2.0.6