maildir-mail.c revision 2d01cc1880cf2afd4fb1c8ad7fa6ce78e562e71e
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen/* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainendo_open(struct maildir_mailbox *mbox, const char *path,
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen mail_storage_set_critical(&mbox->storage->storage, "%s",
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen mail_storage_set_critical(&mbox->storage->storage,
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainendo_stat(struct maildir_mailbox *mbox, const char *path, struct stat *st)
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen mail_storage_set_critical(&mbox->storage->storage, "%s",
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen mail_storage_set_critical(&mbox->storage->storage,
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainenstatic struct istream *
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainenmaildir_open_mail(struct maildir_mailbox *mbox, struct mail *mail,
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen if (maildir_file_do(mbox, mail->uid, do_open, &ctx) < 0)
48acc31adebfdd4e4945ee76e1f5259e4b1b6fffTimo Sirainen path = maildir_save_file_get_path(mail->transaction, mail->seq);
return NULL;
return input;
const char *path;
int ret;
if (ret <= 0) {
if (ret == 0)
const char **fname_r)
bool exists;
int ret;
if (ret != 0)
return ret;
if (exists) {
if (not_pop3_only) {
&count);
for (i = 0; i < count; i++) {
if (!not_pop3_only) {
size_r))
key);
bool vsize)
int pop3_state;
const char *path;
int ret;
if (ret <= 0) {
if (ret == 0)
const char **value_r)
switch (field) {
case MAIL_FETCH_GUID:
case MAIL_FETCH_UIDL_BACKEND:
case MAIL_FETCH_POP3_ORDER:
bool deleted;
if (deleted)
const char *fname;
&fname) == 0 &&
const char *fname;
int ret;
if (ret <= 0)
&size)) {
const char *subdir =
NULL);