dbox-attachment.c revision 52de839a8249bff5eace53dc1401b28baa0c124b
/* Copyright (c) 2010-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "str.h"
#include "dbox-file.h"
#include "dbox-save.h"
#include "dbox-attachment.h"
{
return;
}
static int
const char *ext_refs,
const char **error_r)
{
const char *path_suffix;
"%s contains references to external attachments, "
return -1;
}
return 0;
return 1;
}
{
int ret;
/* need to read metadata in case there are external references */
return ret;
return 1;
/* we have external references. */
T_BEGIN {
if (ret == 0) {
"Corrupted ext-refs metadata %s: %s",
}
} T_END;
return ret;
}