listview.c revision 14bca9c444ca7f6bf492ca32379cde909a272650
/* Copyright (C) 2007 Timo Sirainen */
#include "lib.h"
#include "crc32.h"
#include "mail-index.h"
#include "mailbox-list-index-private.h"
#include <stdio.h>
#include <stdlib.h>
static struct mailbox_list_index_header hdr;
{
return 0;
}
{
int ret;
}
{
struct mailbox_list_dir_record dir;
struct mailbox_list_record rec;
char name[1024];
unsigned int i;
int ret;
if (ret == 0) {
if (*indent != '\0')
i_fatal("unexpected EOF when reading dir");
return;
}
return;
}
if (ret == 0)
"deleted=%d name_offset=%u dir_offset=%u\n",
if (ret <= 0)
else {
i_fatal("name missing NUL terminator");
printf("%s - name: %s (hash %u)\n",
printf("%s - invalid name hash %u vs %u\n",
}
}
if (rec.dir_offset != 0) {
const char *new_indent;
t_push();
if (*indent == '\0')
else
t_pop();
}
}
}
{
int fd;
lib_init();
if (fd < 0) {
i_error("open(): %m");
return 1;
}
printf("---------------\n");
return 0;
}