sdbox-mail.c revision b30584ea5916834e73dcb3672e870291968a9054
/* Copyright (c) 2007-2010 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>
{
/* syncing code first unlinks the file, and index is updated later.
so at this point we don't know if the file was unexpectedly lost
or if it's just being expunged. just assume the latter. */
}
{
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,
};