Thanks for the answer.<br><br>Hook API is usefull when u need to do some action on some events:<br>For example:&nbsp; 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&nbsp; 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> &lt;<a href="mailto:rueckert@informatik.uni-rostock.de">rueckert@informatik.uni-rostock.de</a>&gt; 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>&gt; Is it possible to make hook api?<br>&gt; I&nbsp;&nbsp;mean universal hooks any commands of pop3/imap which can trigger your<br>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openSUSE - SUSE Linux is my linux<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openSUSE is good for you<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.opensuse.org">www.opensuse.org</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Yours <br>Boris