Skip to content

Commit

Permalink
Issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
grosjo committed Jan 24, 2019
1 parent f639613 commit e138b0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Prerequisites
You are going to need the following things to get this going:

* Dovecot above 2.3.x (untested with previous versions)
* Xapian 1.4.x (or above)
* ICU 63 or above

* Properly configured [Users Home Directories](https://wiki.dovecot.org/VirtualUsers/Home) in dovecot configuration


Expand Down
2 changes: 1 addition & 1 deletion src/fts-backend-xapian-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static void fts_backend_xapian_oldbox(struct xapian_fts_backend *backend)
}
/* End Performance calculator*/

i_info("Done indexing '%s' (%d msgs in %d ms, rate: %.1f)",backend->oldbox,backend->perf_nb,dt,r);
i_info("Done indexing '%s' (%ld msgs in %ld ms, rate: %.1f)",backend->oldbox,backend->perf_nb,dt,r);
i_free(backend->oldbox);
backend->oldbox=NULL;
}
Expand Down
7 changes: 4 additions & 3 deletions src/fts-backend-xapian.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* Copyright (c) 2019 Joan Moreau <jom@grosjo.net>, see the included COPYING file */

#include <xapian.h>
#include <cstdio>
extern "C" {
#include "fts-xapian-plugin.h"
}
Expand Down Expand Up @@ -307,8 +308,8 @@ static void fts_backend_xapian_update_unset_build_key(struct fts_backend_update_
{
struct xapian_fts_backend_update_context *ctx =
(struct xapian_fts_backend_update_context *)_ctx;
struct xapian_fts_backend *backend =
(struct xapian_fts_backend *) ctx->ctx.backend;
//struct xapian_fts_backend *backend =
// (struct xapian_fts_backend *) ctx->ctx.backend;

ctx->tbi_uid=0;
}
Expand Down Expand Up @@ -484,7 +485,7 @@ static int fts_backend_xapian_lookup(struct fts_backend *_backend, struct mailbo
XResultSet * r=fts_backend_xapian_query(backend->dbr,&qs);

long n=r->size;
i_info("Query: %d results",n);
//i_info("Query: %d results",n);

i_array_init(&(result->definite_uids),r->size);
i_array_init(&(result->maybe_uids),0);
Expand Down

0 comments on commit e138b0a

Please sign in to comment.