Mercurial > dovecot > original-hg > dovecot-1.2
view src/plugins/fts/fts-plugin.c @ 9283:0de21e725d4e HEAD
ssl_username_from_cert=yes: Don't truncate username, don't allow NULs in it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 04 Aug 2009 14:54:56 -0400 |
parents | b9faf4db2a9f |
children | 00cd9aacd03c |
line wrap: on
line source
/* Copyright (c) 2006-2009 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "mail-storage-private.h" #include "fts-plugin.h" #include <stdlib.h> const char *fts_plugin_version = PACKAGE_VERSION; void (*fts_next_hook_mailbox_opened)(struct mailbox *box); void fts_plugin_init(void) { if (getenv("FTS") != NULL) { fts_next_hook_mailbox_opened = hook_mailbox_opened; hook_mailbox_opened = fts_mailbox_opened; } else if (getenv("DEBUG") != NULL) i_info("fts: No fts setting - plugin disabled"); } void fts_plugin_deinit(void) { if (hook_mailbox_opened == fts_mailbox_opened) hook_mailbox_opened = fts_next_hook_mailbox_opened; }