Re: [Dovecot] Post-logoff script

2010-01-07 Thread Aaron Roberts
> > Hi, > > Is it possible with dovecot to run a script on user logoff > event - something like post-login script? > > You could do a post-login script that does: > > #!/bin/sh > > # post-login stuff > /usr/local/libexec/dovecot/imap > ex=$? > # post-logout stuff > exit $ex > > Of course th

Re: [Dovecot] Post-logoff script

2010-01-06 Thread Timo Sirainen
On 6.1.2010, at 11.51, Aaron Roberts wrote: > Hi, > Is it possible with dovecot to run a script on user logoff event - > something like post-login script? You could do a post-login script that does: #!/bin/sh # post-login stuff /usr/local/libexec/dovecot/imap ex=$? # post-logout stuff ex

[Dovecot] Post-logoff script

2010-01-06 Thread Aaron Roberts
Hi, Is it possible with dovecot to run a script on user logoff event - something like post-login script? What I want to achieve is updating a SQL table with online/offline status. Thanks in advance, Aaron