[Dovecot] Hooks API
Hi
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,,,
Boris
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
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
Boris Ivanov wrote:
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...)
Sounds a little like what can be implemented with Signals on DBus.
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.
Dovecot supports plug-in modules. As listed on the documentation page there's already quota, ACLs, trash, convert (converts mailbox format on login), zlib (access gzipped mboxs), dspam, and others.
Would being able to 'wrap' a command handler satisfy your needs?
-- Curtis Maloney cmaloney@cardgate.net
On 2006-10-03 10:21:58 +0200, Boris Ivanov wrote:
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...)
antivirus/processing email -> MTA/LDA. doing that kind of stuff at the imap level seems wrong.
sms delivery -> LDA -> dovecot lda can use plugins. e.g. sieve plugin.
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.
what functionality do you need?
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...?
plugins are better for that.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
participants (3)
-
Boris Ivanov
-
Curtis Maloney
-
Marcus Rueckert