cydir-mail.c revision 1eaaa2c9003cf3fbf672d597473e3f84e70d2ee6
/* Copyright (c) 2007-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "index-mail.h"
#include "cydir-storage.h"
#include <fcntl.h>
#include <unistd.h>
{
const char *dir;
}
{
const char *path;
return mail_set_aborted(mail);
else {
"stat(%s) failed: %m", path);
}
return -1;
}
return 0;
}
{
return 0;
return -1;
return 0;
}
{
return 0;
return -1;
return 0;
}
{
return 0;
return -1;
return 0;
}
static int
{
const char *path;
int fd;
if (fd == -1) {
else {
"open(%s) failed: %m", path);
}
return -1;
}
return -1;
}
}
}
struct mail_vfuncs cydir_mail_vfuncs = {
cydir_mail_get_physical_size, /* physical = virtual in our case */
NULL,
};