/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hex-dec.h"
#include "istream.h"
#include "index/dbox-common/dbox-file.h"
#include "doveadm-dump.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
static void
{
time_t t;
t = 0;
else {
if (t == 0) {
}
}
}
static uoff_t
{
size = 0;
else {
if (size == 0) {
}
}
return size;
}
{
unsigned int msg_hdr_size = 0;
i_fatal("Empty file");
/* check version */
arg++;
switch (**arg) {
if (msg_hdr_size == 0) {
i_fatal("Invalid msg_header_size header: %s",
*arg + 1);
}
break;
case DBOX_HEADER_CREATE_STAMP:
break;
default:
break;
}
}
if (msg_hdr_size == 0)
i_fatal("Missing msg_header_size in file header");
return msg_hdr_size;
}
static bool
{
const unsigned char *data;
if (size == 0)
return FALSE;
}
*msg_size_r = msg_size;
return TRUE;
}
{
const unsigned char *data;
const char *line;
/* verify magic */
}
/* dump the metadata */
for (;;) {
i_fatal("dbox metadata ended unexpectedly at EOF");
if (*line == '\0')
break;
switch (*line) {
case DBOX_METADATA_GUID:
break;
case DBOX_METADATA_POP3_UIDL:
break;
case DBOX_METADATA_POP3_ORDER:
break;
break;
break;
break;
case DBOX_METADATA_EXT_REF:
break;
break;
break;
}
}
}
{
return FALSE;
return TRUE;
}
{
int fd;
unsigned int hdr_size;
bool ret;
if (fd < 0)
do {
printf("\n");
T_BEGIN {
} T_END;
} while (ret);
}
{
const char *p;
if (p == NULL)
p = path;
else
p++;
}
"dbox",
};