Thanks for the answer.<br><br>Hook API is usefull when u need to do some action on some events:<br>For example: Hook on Event - AfterReceivingMail - send sms to user, start antivirus, any processing of email (analyzing, modifying...)
<br><br>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.
<br><br>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...?<br><br>Best Regards<br>Boris<br><br><div><span class="gmail_quote">
On 02/10/06, <b class="gmail_sendername">Marcus Rueckert</b> <<a href="mailto:rueckert@informatik.uni-rostock.de">rueckert@informatik.uni-rostock.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2006-10-02 09:41:58 +0200, Boris Ivanov wrote:<br>> Is it possible to make hook api?<br>> I mean universal hooks any commands of pop3/imap which can trigger your<br>> modules. Not just quota etc,,,<br><br>see the idea of wrapping an script around your imap/pop command
<br><br>something like<br><br>cat /usr/lib/dovecot/imap.sh<br>#!/bin/sh<br># do your stuff here<br>exec /usr/lib/dovecot/imap<br><br>and in the config you set the imap command to the shell script.<br><br>the questions remains... why in hell do you need it at all?
<br><br>darix<br><br>--<br> openSUSE - SUSE Linux is my linux<br> openSUSE is good for you<br> <a href="http://www.opensuse.org">www.opensuse.org</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Yours <br>Boris