[Dovecot] LMTP plugin with MySQL query
Hello, I want to create a plugin to dovecot 2.0.1, to call a on the deliver action. My plugin work even if I include other libs like mysql or wathever
I tried to use the "sql-api.h" (lib-sql), but at runtime, I have : "undefined symbol: sql_init", "Fatal: Couldn't load required plugins"
Is it possible to use lib-sql api or mysql libs in a plugin ?
I've tried with lda or lmtp plugin with the same result...
Any idea ?
Charly.
On Thu, 2010-09-02 at 18:24 +0200, Charly wrote:
Is it possible to use lib-sql api or mysql libs in a plugin ?
Most Dovecot binaries aren't linked with SQL libs, so that won't work without you adding those libraries to Makefiles. Do you need complex SQL queries, or just something simple? Maybe you could use lib-dict and dict proxy to talk to your SQL server? For example see http://wiki2.dovecot.org/Quota/Dict
Thank you for the reply, I'll try to simplify my query using a MySQL view and to use dict. I think it's the easiest thing to do.
Charly
Le 02/09/2010 19:12, Timo Sirainen a écrit :
On Thu, 2010-09-02 at 18:24 +0200, Charly wrote:
Is it possible to use lib-sql api or mysql libs in a plugin ?
Most Dovecot binaries aren't linked with SQL libs, so that won't work without you adding those libraries to Makefiles. Do you need complex SQL queries, or just something simple? Maybe you could use lib-dict and dict proxy to talk to your SQL server? For example see http://wiki2.dovecot.org/Quota/Dict
participants (2)
-
Charly
-
Timo Sirainen