sdbox-mail.c revision 0a7b04ec6441fdcf083392888b2e30844fc3e86d
/* Copyright (c) 2007-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "istream.h"
#include "str.h"
#include "index-mail.h"
#include "dbox-mail.h"
#include "sdbox-storage.h"
#include "sdbox-file.h"
#include <stdlib.h>
{
return;
}
"dbox %s: Unexpectedly lost uid=%u",
}
{
bool deleted;
int ret;
/* already set */
return FALSE;
return FALSE;
} else {
/* mail is being saved in this transaction */
/* it doesn't have input stream yet */
return TRUE;
}
}
{
bool deleted;
return -1;
}
if (!sdbox_mail_file_set(mail)) {
return -1;
if (deleted) {
return -1;
}
}
*offset_r = 0;
return 0;
}
struct mail_vfuncs sdbox_mail_vfuncs = {
NULL,
};