maildir-storage.c revision 0f506139b4c95589a09a81a5d51636aee994cd1e
3436009bb8409e0a2d7f10a81fc99506ed3e6ca5Lubos Kosco/* Copyright (C) 2002-2006 Timo Sirainen */
#include "unlink-directory.h"
#include "maildir-storage.h"
#include "maildir-uidlist.h"
#include "maildir-keywords.h"
#include "maildir-sync.h"
#include "index-mail.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
struct rename_context {
bool found;
const char *newname;
return path;
if (debug) {
path);
if (debug) {
if (debug)
if (debug)
if (debug)
if (p == NULL)
} while (p != NULL);
if (debug)
static struct mail_storage *
const char *error;
return NULL;
return NULL;
return NULL;
const char *path;
if (debug)
return FALSE;
if (debug)
return FALSE;
return TRUE;
const char *root_dir;
return NULL;
MAILDIR_PLUSPLUS_DRIVER_NAME) != 0) {
return NULL;
if (verify) {
name);
name);
const char *path;
static struct mailbox *
int shared;
if (shared)
if (!shared)
return NULL;
static struct mailbox *
const char *path;
return NULL;
return NULL;
return NULL;
return NULL;
return NULL;
return NULL;
path);
return NULL;
const char *path;
int fd;
const char *name,
int fd;
const char *name)
int count;
count = 0;
dest);
count++;
const char *const *names;
unsigned int i, count;
int ret;
ret = 0;
const char *name;
for (i = 0; i < count; i++) {
t_push();
t_pop();
t_pop();
return ret;
int ret;
bool found;
if (ret < 0)
int ret = 0;
return ret;
int ret;
MAILDIR_PLUSPLUS_DRIVER_NAME) == 0) {
const char *path;
t_push();
t_pop();
switch (type) {
const char *path;
t_push();
t_pop();
if (ret == 0)
return ret;
static void maildir_class_init(void)
static void maildir_class_deinit(void)