"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/plugins/fts-lucene/doveadm-fts-lucene.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

doveadm-fts-lucene.c  (dovecot-2.3.16):doveadm-fts-lucene.c  (dovecot-2.3.17)
skipping to change at line 16 skipping to change at line 16
#include "lucene-wrapper.h" #include "lucene-wrapper.h"
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h> #include <sys/stat.h>
const char *doveadm_fts_lucene_plugin_version = DOVECOT_ABI_VERSION; const char *doveadm_fts_lucene_plugin_version = DOVECOT_ABI_VERSION;
void doveadm_fts_lucene_plugin_init(struct module *module); void doveadm_fts_lucene_plugin_init(struct module *module);
void doveadm_fts_lucene_plugin_deinit(void); void doveadm_fts_lucene_plugin_deinit(void);
static void cmd_dump_fts_lucene(int argc ATTR_UNUSED, char *argv[]) static void
cmd_dump_fts_lucene(const char *path, const char *const *args ATTR_UNUSED)
{ {
struct lucene_index *index; struct lucene_index *index;
struct lucene_index_iter *iter; struct lucene_index_iter *iter;
guid_128_t prev_guid; guid_128_t prev_guid;
const struct lucene_index_record *rec; const struct lucene_index_record *rec;
bool first = TRUE; bool first = TRUE;
i_zero(&prev_guid); i_zero(&prev_guid);
index = lucene_index_init(argv[1], NULL, NULL); index = lucene_index_init(path, NULL, NULL);
iter = lucene_index_iter_init(index); iter = lucene_index_iter_init(index);
while ((rec = lucene_index_iter_next(iter)) != NULL) { while ((rec = lucene_index_iter_next(iter)) != NULL) {
if (memcmp(prev_guid, rec->mailbox_guid, if (memcmp(prev_guid, rec->mailbox_guid,
sizeof(prev_guid)) != 0) { sizeof(prev_guid)) != 0) {
if (first) if (first)
first = FALSE; first = FALSE;
else else
printf("\n"); printf("\n");
memcpy(prev_guid, rec->mailbox_guid, sizeof(prev_guid)); memcpy(prev_guid, rec->mailbox_guid, sizeof(prev_guid));
printf("%s: ", guid_128_to_string(prev_guid)); printf("%s: ", guid_128_to_string(prev_guid));
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)