[Dovecot] How to write plugin
Hi,
Where can I find documentation for plugin writers? Now I see mail-log-plugin source, but I can't understand how entry points (functions mail-log-plugin-init and mail-log-plugin-deinit) are defined to execute some actions on load/unload/copy messages.
Can anybody comments this?
Eugene Prokopiev escreveu:
Hi,
Where can I find documentation for plugin writers? Now I see mail-log-plugin source, but I can't understand how entry points (functions mail-log-plugin-init and mail-log-plugin-deinit) are defined to execute some actions on load/unload/copy messages.
Can anybody comments this?
Hi Eugene.
I have seen your other message about dspam integration.
I believe that you are trying to create something that I already created: A copy-log plugin and an external daemon to train dspam, is that right?
I have been using this solution for about 60 days and it's just perfect for now, I have some TODO things to solve...
If thats what you need just contact me, maybe I can help!
[]'s, FMC!
I tried to use http://www.dovecot.org/patches/copy_plugin.c as simple example. My code is attached. I see plugin loading in logs:
Nov 20 12:29:33 mail dovecot-auth: pam_tcb(dovecot:auth): Authentication passed for enp from (uid=0) Nov 20 12:29:33 mail dovecot: imap-login: Login: user=<enp>, method=PLAIN, rip=192.168.46.23, lip=10.0.101.103 Nov 20 12:29:33 mail dovecot: IMAP(enp): copy plugin init Nov 20 12:29:33 mail dovecot: IMAP(enp):
But I can't see nothing while message is copied :(
I tried to send mail to Fabio M. Catunda <catunda at contactnet.com.br> yesterday, but I see no relpy. Fábio, can you show me you code?
participants (2)
-
"Fábio M. Catunda"
-
Eugene Prokopiev