I'm trying to develop a plugin that uses the hooks provided by the
notify plugin. The notify plugin segfaults if you don't set the
mailbox_rename hook. I attached a patch to notify-plugin.c from Dovecot
2.0.16 that should fix this.
Ewald
--- dovecot-2.0.16/src/plugins/notify/notify-plugin.c.orig 2012-01-20 13:02:49.000000000 +0100
+++ dovecot-2.0.16/src/plugins/notify/notify-plugin.c 2012-01-20 13:13:08.000000000 +0100
@@ -197,8 +197,10 @@
{
struct notify_context *ctx;
- for (ctx = ctx_list; ctx != NULL; ctx = ctx->next)
- ctx->v.mailbox_rename(src, dest, rename_children);
+ for (ctx = ctx_list; ctx != NULL; ctx = ctx->next) {
+ if (ctx->v.mailbox_rename != NULL)
+ ctx->v.mailbox_rename(src, dest, rename_children);
+ }
}
struct notify_context *