Thanks for the answer.
Hook API is usefull when u need to do some action on some events: For example: Hook on Event - AfterReceivingMail - send sms to user, start antivirus, any processing of email (analyzing, modifying...)
But its simple case... I have at least 2 project where I need extend Dovecot functionality. Its possible to write patches for source code but would be much better if it will be implemented officially so anyone can use it.
I didnt understand ur idea to be honest.... So its possible to run shell on when IMAP command arrived? what about parameters? username, mailbox etc...?
Best Regards Boris
On 02/10/06, Marcus Rueckert rueckert@informatik.uni-rostock.de wrote:
On 2006-10-02 09:41:58 +0200, Boris Ivanov wrote:
Is it possible to make hook api? I mean universal hooks any commands of pop3/imap which can trigger your modules. Not just quota etc,,,
see the idea of wrapping an script around your imap/pop command
something like
cat /usr/lib/dovecot/imap.sh #!/bin/sh # do your stuff here exec /usr/lib/dovecot/imap
and in the config you set the imap command to the shell script.
the questions remains... why in hell do you need it at all?
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
-- Yours Boris