sdbox-mail.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
/* Copyright (c) 2007-2018 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"
{
return;
}
}
{
bool deleted;
int ret;
/* already set */
return 0;
return 0;
} else {
/* mail is being saved in this transaction */
/* it doesn't have input stream yet */
if (ret <= 0) {
"dbox: Unexpectedly lost mail being saved");
return -1;
}
return 1;
}
}
static int
const char **value_r)
{
switch (field) {
case MAIL_FETCH_REFCOUNT:
if (sdbox_mail_file_set(mail) < 0)
return -1;
return -1;
}
return 0;
case MAIL_FETCH_UIDL_BACKEND:
*value_r = "";
return 0;
}
break;
case MAIL_FETCH_POP3_ORDER:
*value_r = "";
return 0;
}
break;
default:
break;
}
}
{
bool deleted;
int ret;
return -1;
}
if (ret < 0)
return -1;
if (ret == 0) {
return -1;
if (deleted) {
return -1;
}
}
*offset_r = 0;
return 0;
}
struct mail_vfuncs sdbox_mail_vfuncs = {
NULL,
};